[R] calibration/validation sets

Austin, Matt maustin at amgen.com
Sun Aug 15 02:41:01 CEST 2004

You could keep a row index vector like in the following example.

> data(iris)
> indx <- sample(nrow(iris), 20, replace=FALSE)
> train <- iris[indx,]
> test  <- iris[-indx,]


-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch]On Behalf Of Peyuco Porras
Porras .
Sent: Saturday, August 14, 2004 17:15 PM
To: R-help at stat.math.ethz.ch
Subject: [R] calibration/validation sets
Importance: High

Does anyone know how to create a calibration and validation set from a
particular dataset? I have a dataframe with nearly 20,000 rows! and I would
like to select (randomly) a subset from the original dataset (...I found how
to do that) to use as calibration set. However, I don't know how to remove
this "calibration" set from the original dataframe in order to get my
"validation" set.....Any hint will be greatly appreciated. 

R-help at stat.math.ethz.ch mailing list
PLEASE do read the posting guide!

More information about the R-help mailing list