get.weights {twang} | R Documentation |
Extracts propensity score weights from a ps object.
get.weights(ps1, type = c("ATT", "ATE")[1], stop.method = NULL)
ps1 |
a ps object |
type |
indicates whether the weights are for the average treatment effect on the treated (ATT) or the average treatment effect on the population (ATE) |
stop.method |
indicates which set of weights to retrieve from the ps object |
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