library(nlme); library(performance); library(emmeans)
-library(dplyr); library(broom.mixed)
12.2.5.1 Main effects
<- emmeans(model1, ~V, level = 0.95)
- m1 m1
<- emmeans(model1, ~V, level = 0.95) m1
NOTE: Results may be misleading due to involvement in interactions
+ m1
V emmean SE df lower.CL upper.CL
+ Golden.rain 104.5 7.8 5 84.5 125
+ Marvellous 109.8 7.8 5 89.7 130
+ Victory 97.6 7.8 5 77.6 118
+
+Results are averaged over the levels of: N
+Degrees-of-freedom method: containment
+Confidence level used: 0.95
+<- emmeans(model1, ~N)
- m2 m2
<- emmeans(model1, ~N) m2
NOTE: Results may be misleading due to involvement in interactions
+ m2
N emmean SE df lower.CL upper.CL
+ 0.0cwt 79.4 7.17 5 60.9 97.8
+ 0.2cwt 98.9 7.17 5 80.4 117.3
+ 0.4cwt 114.2 7.17 5 95.8 132.7
+ 0.6cwt 123.4 7.17 5 104.9 141.8
+
+Results are averaged over the levels of: V
+Degrees-of-freedom method: containment
+Confidence level used: 0.95
Make sure to read and interpret EMMs carefully. Here, when we calculated EMMs for main effects of V and N, these were averaged over the levels of other factor in experiment. For example, estimated means for each variety were averaged over it’s N treatments, respectively.