Hi,

I'm using the Cp and Radj method for the selection of variable, with the
library leaps.

I need to save the best model in a file.

If I use the "adjr2" method it's work, but I've a problem with "Cp" method:

> adjr <- leaps(x,y,method="adjr2")
> maxadjr(adjr)
123    12
0.713  0.56

ok...

but whit Cp method don't work....

> adjr <- leaps(x,y,method="Cp")
> maxadjr(adjr)
Errore in order(l$a) : l'argomento 1 non รจ di tipo vector


Thanks,

Alfredo






-- 
View this message in context: 
http://r.789695.n4.nabble.com/best-model-cp-mallow-tp2550015p2550015.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to