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

Description Usage Arguments Value Author(s) See Also

View source: R/predict.R

Description

Predict fitted values from a MLGL object

Usage

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

Arguments

object

MLGL object

newx

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

s

values of lambda. If NULL, use values from object

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)

original code from gglasso package Author: Yi Yang <yiyang@umn.edu>, Hui Zou <hzou@stat.umn.edu>

function inspired from predict function from gglasso package by Yi Yang and Hui Zou.

See Also

MLGL


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