predict.edamodel {StabPerf} | R Documentation |
Predicts the outcome of new patients using a previously trained model.
Description
Provides a mechanism to make predictions using a model of class edamodel
.
Usage
predict.edamodel(model, sample)
Arguments
model |
The trained model of class edamodel . |
sample |
A vector of expression values of the new patient. |
Details
Uses the prediction-method saved in the model and the internal model to do predict the sample.
Value
prediction |
A vector of predicted outcomes for the samples. |
See Also
load.model
, predict
Examples
model <- load.model("data/model.RData") # model is of class "edamodel"
data <- loadData("data/dataset.RData")
predict(model, data[,1:2]) # internally calling predict.edamodel(...)
[Package
StabPerf version 0.5
Index]