Model prediction based on a fitted HierFabs object.
Source:R/predict.HierFabs.R
predict.HierFabs.Rd
Similar to the usual predict methods, this function returns predictions from a fitted 'HierFabs'
object.
Usage
# S3 method for HierFabs
predict(object, new.G, new.y, new.E, new.s, allpath = FALSE, ...)
Arguments
- object
Fitted
'HierFabs'
model object.- new.G
Matrix of new values for genes.
- new.y
Vector of new values for response.
- new.E
An optional new values for environment variables.
- new.s
An optional new values for status variables. Used in cox model prediction only.
- allpath
allpath = T will output all the predictions on the solution path. allpath = FALSE will only output the optimal solution selected in the 'HierFabs' object.
- ...
Not used. Other arguments to predict.
Value
A list.
pred - The linear predict.
mse - Mean square error for linear model.
c.index - C index for cox model.