Predict propensity scores from a fitted statistical model. Fitted value from the model fit are used.
predict_ps(object, ...) # S3 method for fit_ps predict_ps(object, id = "patient_id", ...) # S3 method for fit_ps_mi predict_ps(object, id = "patient_id", ...)
object | A fitted propensity score model of the appropriate class. |
---|---|
... | Currently unused. |
id | Name of the variable from the data frame used to fit |
An object of class ps
or ps_mi
. A ps_mi
object is a list
of ps
objects (one for each imputation) and a ps
object is a list with
elements:
The propensity score.
The linear predictor (i.e., the logit of the propensity score).
The data used to fit the propensity score model.
The model formula used to fit the propensity score model.
The name of the treatment variable.
The names of all covariates (prior to any transformations or dummy variable coding) used in the propensity score model.
The