Hi all, Has anyone tried to do k-fold cross validation for flexible discriminant analysis ( mda library), for example, using crossval() in bootstrap? The problem is that the function crossval() requires a separate matrix for predictors and another for responses, whereas the function fda(), using the formula argument only. Is there another way of doing k-fold cross validation for functions which only have the formula argument, like for fda() and mda() ? Peter -------------------------------------------------------- Peter Ho GradIFST Escola Superior de Biotecnologia Universidade Cat?lica Portuguesa Rua Dr. Ant?nio Bernardino de Almeida 4200-072 Porto Portugal -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._