Description Usage Arguments Value Author(s) See Also Examples
View source: R/generateMarginalEffect.R
Internal function that helps calculate the overall treatment effects differing how inattentive participants are down-weighted.
1 2 3 4 5 6 7 | generateMarginalEffect(
unique_covars,
simulated_betas,
diff_labs,
model_type,
plotDifferences
)
|
unique_covars |
Model matrix of unique characteristics used to generate treatment effects. |
simulated_betas |
−XBetas that have been simulated from mvrnorm distribution |
diff_labs |
|
model_type |
Statistical model to estimate. Currently support OLS and logistic ("ls", "logit"). |
plotDifferences |
Do you want to see the marginal effects by model, or the differences between the models with regard to their marginal effects? Default=FALSE. |
Dataframe of marginal effects with corresponding 95
Jeffrey Ziegler (<jeffrey.ziegler[at]emory.edu>)
1 2 | generateMarginalEffect(generateMarginalEffect(unique_covars = unique_dummies,
simulated_betas=sim_betas, diff_labs=fd_labs[,1]))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.