[R] errorest of library iprde: specifiying parameters for regularized DA

Felix Bach Felix_Bach at gmx.de
Fri May 27 11:55:04 CEST 2011


Hi dear R users,

I am using the function errorest from the libbrary ipred to estimate the 10 fold and bootstrap classification error rate using regularized discriminat function analysis (functiopn rda from library klaR). Is it possible to set my own values for gamma and lambda? 
Any help will be highly appreciated!

Best wishes, 

Felix

library(klaR)
library(ipred)

# force predict to return class labels only
mypredict.lda <- function(object, newdata) predict(object, newdata = newdata)$class

# 10-fold cv of RDA for Iris data
errorest(Species ~ ., data=iris, model=rda, estimator = "cv", predict= mypredict.lda)
--



More information about the R-help mailing list