On 16.11.2012 16:05, Catarina Maia wrote:
Hello, I am using the mda package and in particular the fda routine to classify in term of gear a set of 20 trips. I preformed a flexible discriminant analysis (FDA) using a set of 151 trips. FDAT1 <- fda(as.factor(gear) ~ . , data =matrizR) A total of 22 predictors were considered. 20 of the predictors are "numeric" and 2 are "factors/discrete". The resulting FDA rule was applied to the 20 trips and for the same predictors in order to predict the type of gear used. however a consistent error is occuring: Error in polybasis(newdata, degree, monomial) %*% object$coef : non-conformable arguments it is possible the problem being related with the 2 predictors that are discrete variables? there is already available some rotine to perform a discrete discriminant analysis considering continuous and discrete variables? if someone can help, would be very grateful.
Probably not even the author of that function could easily help without a reproducible example - the posting guide for this list asks you to provide one.
Uwe Ligges
cheers, Catarina [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.