[R] function ctree in package party

Mark Difford mark_difford at yahoo.co.uk
Fri Mar 6 11:41:51 CET 2009


Hi Maxl18,

>> error in model at fit(data,...) : object "var3" not found
>> What should I do? 

Make sure that "var3" exists/is available

##
str(datalist$var3)     ## is it here?
ls(pattern="var3")   ## is it here?

Regards, Mark.


Maxl18 wrote:
> 
> Hi,
> I have a problem with the function ctree in the package party.
> 
> When I launch ctree with weights=NULL it works.
> ctree(function~var1+var2, data=datalist, weights=NULL,
> controls=ctree_control(mincriterion=0.95, maxdepth=4,
> teststat="quad",testtype="Bonferroni"))
> 
> But when I try
> ctree(function~var1+var2, data=datalist, weights=var3,
> controls=ctree_control(mincriterion=0.95, maxdepth=4,
> teststat="quad",testtype="Bonferroni"))
> there`s an error message
> error in model at fit(data,...) : object "var3" not found
> 
> What should I do? Thanks
> 

-- 
View this message in context: http://www.nabble.com/function-ctree-in-package-party-tp22369191p22369456.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list