I need to do a pairwise comparison using emmeans but Posit is unable to find the emmeans function. I believe I need to load a package, but I do not know which one. Here is the error I receive:
Error in emmeans(Leaf_area_lm, ~Propagation) :
could not find function "emmeans"
Can anyone advise which package to load to use the emmeans function? Last year I used the performance package, but this year I receive an error saying there is no package called performance. What has replaced the performance package?
There is an emmeans() function in the emmeans package. The description of the function says:
Compute estimated marginal means (EMMs) for specified factors or factor combinations in a linear
model; and optionally, comparisons or contrasts among them. EMMs are also known as least-
squares means.