View source: R/model_fitting.R
fitMPRModel | R Documentation |
fitMPRModel
fitMPRModel(
type,
method,
trainXs,
trainY,
testXs = NULL,
testY = NULL,
tteColname = "time_to_event",
eventColname = "Event",
parallel = FALSE,
seed = NULL,
save = TRUE,
saveSuffix = NULL,
...
)
type |
A string representing the type of model. Can be |
method |
The modelling method. Currently supports |
trainXs |
The training data matrix/data.frame. |
trainY |
The training response variable. This should be a vector if
|
testXs |
The test data matrix/data.frame. |
testY |
The test response variable. This should be a vector if
|
tteColname |
A string corresponding to the time-to-event column name in
|
eventColname |
A string corresponding to the event column name in
|
parallel |
A boolean specifying whether parallel computation should be used in model fitting. |
seed |
An integer to set the random seed to for model fitting. |
save |
A boolean specifying if the model object should be saved to the logs. |
saveSuffix |
Optional - a custom suffix to include in the file name of the saved model object after the timestamp. |
... |
Other arguments to be passed to the method-specific fitting function. |
A MPRModel object with the fitted model.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.