PS.ConvertFrom.Weight: Convert the Inverse Probability Weight (IPW) for ATE to...

View source: R/PSWweight.R

PS.ConvertFrom.WeightR Documentation

Convert the Inverse Probability Weight (IPW) for ATE to Propensity Score

Description

This function converts the IPW weights from PSLB 2 to the corresponding propensity scores. When the subject i is in the untreated group, the converted propensity score is 1-(1/weight_i). When the subject i is in the treated group, converted propensity score is 1/weight_i.

Usage

PS.ConvertFrom.Weight(w, Z)

Arguments

w

The input IPW weights.

Z

The binary treatment indicator. A vector with 2 unique numeric values in 0 = untreated and 1 = treated.

Value

The vector contanining the converted propensity score.


fiona19832008/PSLB documentation built on April 14, 2022, 12:41 a.m.