Description Usage Arguments Details Value See Also
Extracts propensity score weights from a ps or mnps object.
1 2 3 4 | get.weights(ps1,
stop.method = NULL,
estimand = NULL,
withSampW = TRUE)
|
ps1 |
a |
stop.method |
indicates which set of weights to retrieve from the |
estimand |
indicates whether the weights are for the average treatment effect on the treated (ATT) or the average treatment effect on the population (ATE). By default, |
withSampW |
Returns weights with sample weights multiplied in, if they were provided in the original |
Weights for ATT are 1 for the treatment cases and p/(1-p) for the control cases.
Weights for ATE are 1/p for the treatment cases and 1/(1-p) for the control cases.
a vector of weights
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.