Description Usage Arguments Value
Given a fitted model object with a predict method, run a perturbation algorithm that estimates the local slope of the predicted outcome for each predictor in the model and for each subject in the dataset.
1 | shift_pred(SLobject, X, predictor)
|
SLobject |
The fitted model object, e.g. from superlearner_estimate |
X |
A dataframe to be perturbed |
predictor |
the predictors used the the model |
A data frame with the local slopes for each variable (columns) and each subject (rows)
deprecated
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.