Displaying 1 result from an estimated 1 matches for "trainingandvalidation".
2007 Jun 18
0
discriminant analysis with lda(MASS)
...tics and p-value associated with
discriminant analysis? Am I supposed to calculate that manually by squaring
the svd value and looking the p value up in a table? I am writing the
following code:
training.mx<-read.table('C:\\Documents and Settings\\silvia\\My
Documents\\silvia\\paper Martin\\trainingAndvalidation.txt', header=T)
train <- sample (1:148) ##in a file with 399 cases, I am using the first 148
as a training set
table(training.mx$disperser[train])
training.df <- lda (disperser~., training.mx, subset=train)
predict (training.df, training.mx[-train,])$class
2nd. How can I get the scores f...