predict.glmnet.prmdt: predict.glmnet.prmdt

View source: R/predict.R

predict.glmnet.prmdtR Documentation

predict.glmnet.prmdt

Description

Return prediction for a glmnet model.

Usage

## S3 method for class 'glmnet.prmdt'
predict(object, newdata, type = "class", s = NULL, ...)

Arguments

object

a glmnet model object for which prediction is desired.

newdata

an optional data frame in which to look for variables with which to predict.

type

type of prediction 'prob' or 'class' (default).

s

a cv.glmnet object (optional).

...

additional arguments affecting the predictions produced.


traineR documentation built on Nov. 10, 2023, 1:15 a.m.