0

I have been looking at forming adjusted means for a value in a ancova regression. I have quite a simple question: when using emmeans does it provide the adjusted means over mutiple coavariates. For instance:

model<- aov(Score ~ categoryA+B+C+D, data=Trial)
emmeans(model, c("A"))

the emmeans that are now given are they the adjusted means of Score for the categoryA adjusted for B+C+D?

Many thanks

Russ Lenth
  • 5,922
  • 2
  • 13
  • 21
DW1310
  • 147
  • 7
  • 1
    Yes. It will compute predictions with B, C, and D each set to their average. Except that the code you show would not work because there is no predictor named `"C"` in the model. You would need `emmeans(model, "categoryA")` – Russ Lenth Nov 03 '22 at 20:49

0 Answers0