get_emmeans.Rd
This function is a wrapper for emmeans::emmeans()
and multcomp::cld()
(details here). Based on a given linear model object, it computes estimated marginal means (a.k.a. least-squares means, adjusted means, modelbased means) for specified factors or factor combinations as well as comparisons or contrasts among them. Moreover, it adds the compact letter display to the comparisons/contrasts. Finally, its output is a list with six elements: for the means and their diffs, respectively, (i) a tibble with the results, (ii) the same tibble but in a print-ready format and (iii) an info text summarizing the results.
a linear model object. See the list of supported model classes
a character vector specifying the names of the predictors over which emmeans are desired
degrees of freedom method. See the list of available methods
multiplicity adjustment. Follow this link and scroll down o to the “P-value adjustments” heading within the “summary.emmGrid” section for more details on e.g. Fisher’s LSD test, Tukey-test, Bonferroni adjustment etc.
Language for table names and text.
format the number of digits shown after the decimal separator
sort the levels of the predictors given in specs_string
in the output
Here is a discussion on the speed of calculating confidence intervals with different degrees of freedom methods.