cv.glmnet: data.frame-first formula-second method for 'cv.glmnet'

Description Usage Arguments See Also Examples

Description

This function passes a data.frame, formula, and additional arguments to cv.glmnet().

Usage

1
2
3
4
cv.glmnet(data, formula, ...)

## S3 method for class 'cv.glmnet'
predict(object, data, ...)

Arguments

data

Data frame (or object that can be coerced to one) containing the variables in the model

formula

formula (or object that can be coerced to one) describing the model to be fitted

...

Additional arguments to pass to model function

object

Fitted model

See Also

cv.glmnet

Examples

1
2
fit <- cv.glmnet(mtcars, hp ~ .)
predict(fit, mtcars, s = "lambda.min")

drsimonj/twidlr documentation built on May 15, 2019, 2:53 p.m.