Learn R Programming

twang (version 2.6.1)

get.weights.unstab: Extract unstabilized propensity score weights for `iptw` fits

Description

Extracts propensity score weights from an `iptw` or `mniptw` object.

Usage

get.weights.unstab(x, stop.method = NULL, withSampW = TRUE)

Value

Returns a data.frame of weights.

Arguments

x

An `iptw` or `mniptw` object.

stop.method

The twop method used for the fit of interest.

withSampW

Returns weights with sample weights multiplied in, if they were provided in the original `iptw` call. Default: `TRUE`.

Details

Weights are the reciprocal of the product of the probability of receiving the treatment received.

See Also

[iptw]