Skip to content

Instantly share code, notes, and snippets.

@ramhiser
Created May 8, 2014 19:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ramhiser/ec7464cc49f3226c3b1b to your computer and use it in GitHub Desktop.
Save ramhiser/ec7464cc49f3226c3b1b to your computer and use it in GitHub Desktop.
Updated MDA code for Maha Wael Elbakry
# Comment thread beginning here:
# http://ramhiser.com/blog/2013/07/02/a-brief-look-at-mixture-discriminant-analysis/#comment-1374749931
#
# I'm using version 0.4-4 of the `mda` package
library(mda)
test_data <- read.csv("ts2.csv")
colnames(test_data)[16] <- "filter"
mda_out <- mda(formula=fol_up_u ~ . - filter,
data=test_data,
CV=TRUE,
na.action="na.omit")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment