Description Usage Arguments Value Examples
View source: R/model_mean_differences.R
This function relies extensively on 'emmeans' package (yes, it works for lm too)
1 | mean_differences_emmeans(model_list, treatment_factor_list)
|
model_list |
A list of model objects ( |
treatment_factor_list |
A list of treatment factor(s) for which contrasts are specified in the model |
A tbl
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
# main effects and interaction effects means for two factors using emmeans tidier
mean_differences_emmeans(model_list = mt_named_list, treatment_factor_list = mt_treatment_factor_list)
# plot emmeans
plot(emmeans::emmeans(mt_lm1, "am"), comparison = T)
# plot emmeans p-values
emmeans::pwpp(emmeans::emmeans(mt_lm1, "am"))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.