predict.cv.MLGL {MLGL}R Documentation

Predict fitted values from a cv.MLGL object

Description

Predict fitted values from a cv.MLGL object

Usage

## S3 method for class 'cv.MLGL'
predict(object, newx = NULL, s = c("lambda.1se",
  "lambda.min"), type = c("fit", "coefficients"), ...)

Arguments

object

cv.MLGL object

newx

matrix with new individuals for prediction. If type="coefficients", the parameter has to be NULL

s

Either "lambda.1se" or "lambda.min"

type

if "fit", return the fitted values for each values of s, if "coefficients", return the estimated coefficients for each s

...

Not used. Other arguments to predict.

Value

A matrix with fitted values or estimated coefficients for given values of s.

Author(s)

Quentin Grimonprez

See Also

cv.MLGL


[Package MLGL version 0.5.1 Index]