predict.MADMMplasso {MADMMplasso} | R Documentation |
Compute predicted values from a fitted MADMMplasso object. Make predictions from a fitted MADMMplasso model
Description
Compute predicted values from a MADMMplasso object. Make predictions from a fitted MADMMplasso model
Usage
## S3 method for class 'MADMMplasso'
predict(object, X, Z, y, lambda = NULL, ...)
Arguments
object |
object returned from a call to MADMMplasso |
X |
N by p matrix of predictors |
Z |
N by nz matrix of modifying variables. These may be observed or the predictions from a supervised learning algorithm that predicts z from test features x and possibly other features. |
y |
N by D matrix of responses. |
lambda |
values of lambda at which predictions are desired. If NULL (default), the path of lambda values from the fitted model. are used. If lambda is not NULL, the predictions are made at the closest values to lambda in the lambda path from the fitted model |
... |
additional arguments to the generic |
Value
predicted values
[Package MADMMplasso version 1.0.0 Index]