predict.MLGL {MLGL}R Documentation

Predict fitted values from a MLGL object

Description

Predict fitted values from a MLGL object

Usage

## 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


[Package MLGL version 0.6.1 Index]