[R] caret - prevent resampling when no parameters to find

pdb philb at philbrierley.com
Mon May 2 01:09:17 CEST 2011


Thanks for the clarification Max - I should have realised that.

One final question, I like caret because it lets me pass in data to all
functions in the same way. For glm I have only ever used the formula
notation and did not see a way to pass in predictors and a target
individually. How do I do this? How do I get the 2nd example below to work?

Many thanks.

LOGISTIC_model <- train(mdrrDescr,mdrrClass
                        ,method='glm'
                        ,family=binomial(link="logit")
                        )
                        
  
LOGISTIC_model1 <- glm(mdrrDescr,mdrrClass, family=binomial(link="logit")) --
View this message in context: http://r.789695.n4.nabble.com/caret-prevent-resampling-when-no-parameters-to-find-tp3488761p3488911.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list