stop.method: Indicates which set of weights to retrieve from the ps object.
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, get.weights will use the estimand used to fit the ps object.
withSampW: Whether to return weights with sample weights multiplied in, if they were provided in the original ps or mnps call. Default: TRUE.
Returns
Returns a vector of weights.
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.