[R] cross-validation

From: Trevor Wiens <twiens_at_interbaun.com>
Date: Mon 14 Mar 2005 - 09:28:54 EST

I've been looking at the base and Design libraries and it is unclear to me the best way to approach doing cross-validation. I'm interested in using temporal (I have five years of data), spatial (I've divided my data set up into 5 blocks that make sense and have a block variable attached to my data) and I was also thinking of doing a random cross-validation to look at general model stability. For the third options I can use cross-validation or bootstrapping.

If someone can type out a code example, that would be very helpful to me.

Thanks in advance.


Trevor Wiens 

The significant problems that we face cannot be solved at the same 
level of thinking we were at when we created them. 
(Albert Einstein)

R-help@stat.math.ethz.ch mailing list
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Mon Mar 14 12:26:25 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:30:47 EST