mean_differences_emmeans: Tidies up a list of lme (or lm) models to obtain table of...

Description Usage Arguments Value Examples

View source: R/model_mean_differences.R

Description

This function relies extensively on 'emmeans' package (yes, it works for lm too)

Usage

1
mean_differences_emmeans(model_list, treatment_factor_list)

Arguments

model_list

A list of model objects (lme, lmer or lm)

treatment_factor_list

A list of treatment factor(s) for which contrasts are specified in the model

Value

A tbl

Examples

 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)

DeependraD/expdean documentation built on Nov. 25, 2019, 12:33 a.m.