Hi Maxl18,

>> error in mo...@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 mo...@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.

______________________________________________
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