Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

recurrent_propensity

Propensity Score Weighting


Description

recurrent_propensity Adds propensity score to any data set that is being regressed upon.

Usage

recurrent_propensity(data, vars)

Arguments

data

Data frame that contains all covariates and outcomes. First column should be ID

vars

Variables used for regression. Outcome variable must be first.

Details

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.

Value

Returns a modified table from what was originally given with the new columns propensity scores. Essentially original df + 2 columns.


card

Cardiovascular and Autonomic Research Design

v0.1.0
MIT + file LICENSE
Authors
Anish S. Shah [aut, cre, cph] (<https://orcid.org/0000-0002-9729-1558>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.