recurrent_propensity
Adds propensity score to any data set that is being regressed upon.
recurrent_propensity(data, vars)
Data frame that contains all covariates and outcomes. First column should be ID
Variables used for regression. Outcome variable must be first.
Returns a modified table from what was originally given with the new columns propensity scores. Essentially original df + 2 columns.
Using a logistic regression, will take covariates and create propensity scores, and adds the weights. Uses the standard logistic regression to evaluate the propensity score.