Hello.
I fit the following ANCOVA model and want to conduct some planned contrasts tests within factor paycondition:
anova wbiam i.paycondition c.sdbam i.paycondition#c.sdbam
paycondition has 3 groups. I used the following code to compare within the groups right after running the above anova code.
contrast r.paycondition
contrast ar.paycondition
However, I also found the following code to do planned contrasts, for the contrast comparing group1 and group2:
anovacontrast paycondition, values (1 -1 0)
The two types of code give me different p-values and test statistics. I'm not sure which way to rely on.
Thanks for your help.
Related Posts with ANCOVA - planned contrast tests code
do standard errors in -margins- after -meglm- account for the (EB) random effect variance?I am working with a meglm model, and need to produce margins out of it. Based on the [ME] meglm post…
wbopendata query error 23Hi all, I've been running into the following error for several days now: wbopendata query erro…
How to colour bars in a histogram or graph barHi there, I have been trying to colour individual bars in a histogram or graph bar with percentages…
Average Marginal effects for a multilevel modelHi, Please, I wanted to know the appropriateness of deriving marginal effects from a multilevel mod…
problem installing using the ssc commandI am using Stata/MC 16.1 on Windows 10 (also had the same problem using Ubuntu Linux 18.04). I have…
Subscribe to:
Post Comments (Atom)
0 Response to ANCOVA - planned contrast tests code
Post a Comment