Message-ID: <alpine.DEB.2.00.1106161026140.3129@diana>
Date: 2011-06-16T08:27:08Z
From: Torsten Hothorn
Subject: varimp_in_party_package
In-Reply-To: <alpine.DEB.2.02.1106152249100.7759@paninaro.uibk.ac.at>
>
> 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.
>