PS.ConvertFrom.Weight | R Documentation |
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.
PS.ConvertFrom.Weight(w, Z)
w |
The input IPW weights. |
Z |
The binary treatment indicator. A vector with 2 unique numeric values in 0 = untreated and 1 = treated. |
The vector contanining the converted propensity score.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.