Description Usage Arguments Value
This function prepares the (generalized) propensity scores and checks the common support after variable selection.
1 |
x |
Matrix of covariates (N x p matrix) |
t |
Matrix of binary treament indicators (N x # of treatments matrix) each column contains a binary indicator for each tratment |
nm_list |
List with length = # of treatments containing list with the selected variable names for each treatment level |
cs |
If TRUE, common support will be checked |
q |
Quantile used for enforcing common support |
print |
If TRUE, descriptives for p-scores and common support shown |
gps_prep
returns a list containing a N x # of treatments matrix
with generalized propensity scores (p
) and a boolean indicating common
and a boolean indicating common support (cs
).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.