Re: [R] prediction in a loop with only one sample

2013-05-13 Thread PIKAL Petr
testing <- some.data[ind,] training <- some.data[-ind,] Regards Petr > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of asdf1234 > Sent: Saturday, May 11, 2013 9:59 AM > To: r-help@r-project.org > Subject: [

[R] prediction in a loop with only one sample

2013-05-11 Thread asdf1234
Dear all, I have a sample with 920 observations. I want to create a loop which takes 300 of these observations for the prediction and the rest to estimate the model. My idea was to create something like this: cs.training.dat <- read.table... cs.training.dat_sub1 <- subset(cs.training.dat,