cv  R Documentation 
Those functions are lowlevel functions used by errorest
and
are normally not called by users.
## S3 method for class 'factor'
cv(y, formula, data, model, predict, k=10, random=TRUE,
strat=FALSE,
predictions=NULL, getmodels=NULL, list.tindx = NULL, ...)
y 
response variable, either of class 
formula 
a formula object. 
data 
data frame of predictors and response described in 
model 
a function implementing the predictive model to be
evaluated. The function 
predict 
a function with arguments 
k 
kfold crossvalidation. 
random 
logical, indicates whether a random order or the given
order of the data should be used for sample splitting or not, defaults to

strat 
logical, stratified sampling or not, defaults to 
predictions 
logical, return the prediction of each observation. 
getmodels 
logical, return a list of models for each fold. 
list.tindx 
list of numeric vectors, indicating which observations are included in each crossvalidation sample. 
... 
additional arguments to 
See errorest
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.