RE: [R] cross validation and CART

From: Liaw, Andy <>
Date: Sat 16 Apr 2005 - 01:24:42 EST

> From: Laure Maton
> Hello,
> I would like to know if the classification trees i built with
> my data are
> predictive or not.
> Could you explain me how to do that?
> Thanks
> Laure Maton

If you are talking about the particular tree models that you built from the data, you will need independent test set to evaluate prediction performance. If you want to know if the _algorithm_ can produce models that are predictive, you can use something like cross validation. See the errorest() function in the `ipred' package, for example.

Andy mailing list PLEASE do read the posting guide! Received on Sat Apr 16 01:37:20 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:11 EST