search for: polymodelselect

Displaying 1 result from an estimated 1 matches for "polymodelselect".

2010 Dec 04
2
Problem storing lm() model in a list
...ote some code to store a number of polynomial models in a list and return this list. The model is returned fine, but when I make a subsequent call to predict(), I have an error. The code for polyModel selection is listed at the end of the email. Here is an example of the error: > poly.fit <- polyModelSelection(x,y,10,F) > for (d in 1:4) { + lm.model <- poly.fit$models[[d]] + curve(predict(lm.model,data.frame(x)),add=T,lty=d+1) + } Error: variable 'poly(x, d, raw = T)' was fitted with type "nmatrix.1" but type "nmatrix.10" was supplied Does anyone have any ide...