[R] Fwd: varimp_in_party_package

Torsten Hothorn Torsten.Hothorn at stat.uni-muenchen.de
Thu Jun 16 10:27:08 CEST 2011


>
> Hello everyone,
>
> I use the following command lines to get important variable from training 
> dataset.
>
>
> data.controls <- cforest_unbiased(ntree=500, mtry=3)
> data.cforest <- cforest(V1~.,data=rawinput,controls=data.controls)
> data.cforest.varimp <- varimp(data.cforest, conditional = TRUE)
>
> I got error: "Error in model.matrix.default(as.formula(f),data = blocks): 
> term 1 would require 4e+17 columns"
>

there is a factor with (too) many levels in your data frame `rawinput'.

summary(rawinput)

will tell you which one.

Torsten

> I changed data dimension to 150. The problem still exists. So, I guess there 
> are other problems. Please give me some help or hints. Thanks!
>
> jinrui,
>
> ______________________________________________
> R-help at 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.
>



More information about the R-help mailing list