> I'd like to force rpart to use a specific variable, namely "spec" as
> the first split and then allow it to proceed as usual.  Is there a way
> to do this?

  You can often get this effect by using the "cost" argument.  Make the
variable in question have very low cost.

Terry Therneau

______________________________________________
[email protected] 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