predict.MLGL {MLGL} | R Documentation |
MLGL
objectPredict fitted values from a MLGL
object
## S3 method for class 'MLGL' predict(object, newx = NULL, s = NULL, type = c("fit", "coefficients"), ...)
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. |
A matrix with fitted values or estimated coefficients for given values of 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.