mi_PS | R Documentation |
This code generates propensity scores with multiple imputed values for missing data. Imputation is conducted with the mice::mice()
function.
Results are averaged for each row of entries representing single iterations.
mi_PS(data, vars, prop.var = NULL, m = 5, ...)
data |
data.frame or data.table containing survival data. |
vars |
variables tested for Influence on outcome. |
prop.var |
variable for which propensity scores should be calculated. If no value is provided (prop.var = NULL), no weights are used in coxph. Default is NULL. |
m |
Number of multiple imputations. The default is |
... |
additional arguments to be passed on to coxph function |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.