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