Description Usage Arguments Value
Takes a vector of propensity scores for a sample and
converts them into propensity weights using their
odds. By default, it assumes that the propensities
represent the probability than an observation comes from
the sample rather than the reference dataset. If the propensity
is the probability of being from the reference dataset, set
p_denom = FALSE
.
1 | prop2weight(p, p_denom = TRUE)
|
p |
A vector of propensity scores |
p_denom |
If |
A vector of propensity weights
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.