[R] best model cp mallow

Alfredo Alessandrini alfreale74 at gmail.com
Wed Sep 22 11:50:35 CEST 2010


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.



More information about the R-help mailing list