predict.cv.MLGL: Predict fitted values from a 'cv.MLGL' object

Description Usage Arguments Value Author(s) See Also

View source: R/predict.R

Description

Predict fitted values from a cv.MLGL object

Usage

1
2
3
4
5
6
7
8
## 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


MLGL documentation built on Dec. 31, 2019, 3 a.m.