get.weights: Extract propensity score weights

Description Usage Arguments Details Value See Also

View source: R/get.weights.R

Description

Extracts propensity score weights from a ps or mnps object.

Usage

1
2
3
4
get.weights(ps1,
			stop.method = NULL,
            estimand = NULL,
            withSampW = TRUE)

Arguments

ps1

a ps or mnps object

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

Returns weights with sample weights multiplied in, if they were provided in the original ps or mnps call.

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

a vector of weights

See Also

ps


twang documentation built on May 2, 2019, 6:53 p.m.

Related to get.weights in twang...