get.weights {twang} | R Documentation |
Extract propensity score weights.
Description
Extracts propensity score weights from a ps or mnps object.
Usage
get.weights(ps1, stop.method = NULL, estimand = NULL, withSampW = TRUE)
Arguments
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 |
Whether to return weights with sample weights multiplied in, if they were
provided in the original |
Details
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.
Value
Returns a vector of weights.
See Also
[Package twang version 2.6.1 Index]