Hi all.
I am trying to do contrasts after the following mixed model in Stata 18:
There are six groups and three time points.
I want to do all pairwise comparisons of group only within each time point, and all pairwise comparisons of time points only within each group.
and
only do comparisons vs the reference level in each case.
does all pairwise comparisons for all combinations of group and time. How do I restrict the pairwise comparisons between time points to only within the same group, and comparisons between groups to only within the same time points?
Thanks, and apologies for what must be an elementary question.
I am trying to do contrasts after the following mixed model in Stata 18:
Code:
mixed y group##time || id:
I want to do all pairwise comparisons of group only within each time point, and all pairwise comparisons of time points only within each group.
Code:
contrast r.time@group
Code:
contrast r.group@time
Code:
pwcompare time#group
Thanks, and apologies for what must be an elementary question.

Comment