Description Usage Arguments Value Author(s) References Examples
This function is used to estimate both the population average and between-site variance of direct and indirect effects.
1 |
data |
The data set for analysis. |
y |
The name of the outcome variable (string). |
treatment |
The name of the treatment variable (string). |
mediator |
The name of the mediator variable (string). |
X |
A vector of variable names (string) of pretreatment covariates, which will be included in the propensity score model. For now, the multilevel propensity score model only allows for one random intercept. |
site |
The variable name for the site ID (string). |
A list contains the estimates of the between-site variance of direct effect, that of indirect effect, and the correlation between the direct and indirect effects across sites ($Random_effects), and the population average direct and indirect effect estimates along with their hypothesis testing results ($Fixed_effects).
Xu Qin and Guanglei Hong
Qin, X., & Hong, G (2017). A weighting method for assessing between-site heterogeneity in causal mediation mechanism. Journal of Educational and Behavioral Statistics. Journal of Educational and Behavioral Statistics, 42(3), 308-340. doi: 10.3102/1076998617694879
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.