predict.ple_train | R Documentation |
Prediction function for the trained patient-level estimate (ple) model.
## S3 method for class 'ple_train' predict(object, newdata = NULL, ...)
object |
Trained ple model. |
newdata |
Data-set to make predictions at (Default=NULL, predictions correspond to training data). |
... |
Any additional parameters, not currently passed through. |
Data-frame with predictions (depends on trained ple model).
PRISM
library(StratifiedMedicine) ## Continuous ## dat_ctns = generate_subgrp_data(family="gaussian") Y = dat_ctns$Y X = dat_ctns$X A = dat_ctns$A mod1 = ple_train(Y=Y, A=A, X=X, Xtest=X, ple="ranger", meta="X-learner") summary(mod1$mu_train) res1 = predict(mod1, newdata=X) summary(res1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.