predict.cv.stepreg {glmnetr}R Documentation

Beta's or predicteds based upon a cv.stepreg() output object.

Description

Give predicteds or Beta's based upon a cv.stepreg() output object. If an input data matrix is specified the X*Beta's are output. If an input data matrix is not specified then the Beta's are output. In the first column values are given based upon df as a tuning parameter and in the second column values based upon p as a tuning parameter.

Usage

## S3 method for class 'cv.stepreg'
predict(object, xs = NULL, ...)

Arguments

object

cv.stepreg() output object

xs

dataset for predictions. Must have the same columns as the input predictor matrix in the call to cv.stepreg().

...

pass through parameters

Value

a matrix of beta's or predicteds

See Also

summary.cv.stepreg, cv.stepreg , nested.glmnetr


[Package glmnetr version 0.5-1 Index]