cv: Cross-validation for a model object

Description Usage Arguments Details See Also

View source: R/cv.R

Description

Cross-validation for a model object

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
cv(object, folds = 10, ...)

## S3 method for class 'cv'
print(x, ...)

## S3 method for class 'cv'
summary(object, ...)

## S3 method for class 'cv'
plot(x, y, ...)

## S3 method for class 'cv'
ggplot(data, mapping = NULL, ..., environment = parent.frame())

Arguments

object

A model object.

folds

The number of cross-validation folds to use. Defaults to folds = 10.

...

Other arguments to be passed through to methods.

x, y

Arguments to plot method.

data, mapping, environment

Arguments ggplot method.

Details

The function is generic. At present, only objects of class 'evmOpt', as returned by texmex::evm can be used.

See Also

cv.evmOpt


texmex documentation built on Dec. 4, 2020, 5:08 p.m.