Re: [R] caret: compare linear models of different degree

2012-06-11 Thread Dominik Bruhn
The same statement is true for the "plotmo" function. It also does not handle the situations right if the training functions contains interactions. You can try this out using this code: library(caret) data(trees) m = train(Volume~(Girth+Height)^2, data=trees, method="lm") plotmo(m$finalModel)

Re: [R] caret: compare linear models of different degree

2012-06-09 Thread Dominik Bruhn
Max, thanks for your answer! > predict.train() will handle the formulas. If you want to compare the > models in terms of their predictive performance, set the seeds prior > to running the model. This will ensure that the same resampling > indices are used in train(). If you do this, the resamples()