Does it mean that regsubsets doesn't work with categorical variables?

It's because I'm trying the following and I don't know what happens. Any
help would be appreciated. 

varin <- data.frame(v1,v2,...,v7, factor1,..., factor4)

Dependent variable: height

Then:

eu.subsets <- regsubsets(varinc , height,
method=c("exhaustive"),nvmax=3,nbest =1)

It gives me this errror: 

Error en leaps.setup(x, y, wt = weights, nbest = nbest, nvmax = nvmax,  : 
  character variables must be duplicated in .C / .Fortran

By the way, if you introduce weights in regsubsets, is the same as doing
some kind of robust regression?

Thanks, u...@host.com




--
View this message in context: 
http://r.789695.n4.nabble.com/regsubsets-leaps-package-please-share-some-good-examples-of-use-tp885785p3356716.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