search for: lda_res

Displaying 2 results from an estimated 2 matches for "lda_res".

Did you mean: dacres
2006 Nov 11
1
predict.lda is missing ?
I'm trying to classify some observations using lda and I'm getting a strange error. I loaded the MASS package and created a model like so: >train <- mod1[mod1$rand < 1.7,] >classify <- mod1[mod1$rand >= 1.7,] >lda_res <- lda(over_win ~ t1_scrd_a + t1_alwd_a, data=train, CV=TRUE) That works, and all is well until I try to do a prediction for the holdouts: >lda_pred <- predict(lda_res, classify)$class Error in predict(lda_res, classify) : no applicable method for "predict" If I try predict.ld...
2009 Jan 06
0
Singularity of lda function in MASS package
I have two specific questions regarding the output of lda function in MASS. #Question1: #========= n: sample size, p: number of variables Some articles in the literature say that LDA is singular for p > n-1. However, my experimentation with lda (default arguments) for two class problems shows collinearity for p > n-2. Does anyone know why this is the case? Does lda (MASS) use a different