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
2SLS in non-linear models with count endogenous explanatory variableGreetings everyone, I specify two models in my study with two different dependent variables; one of…
How to select a specific part in a string variable?Greetings, I am cleaning data in a very large dataset, and would want to drop all records in a speci…
PANEL DATA and UNIT ROOT TESTDear Stata users, I am conducting my research about CHINESE FDI IN AFRICA, my main purpose of the s…
Date formattingHello Statalist, I am working with dates and I am encountering a problem I have not encountered bef…
mismatch r(109) : finding average variablegood evening I hope that you are all in good health. The dataset comprises of a balanced panel of …
Subscribe to:
Post Comments (Atom)
0 Response to ANCOVA - planned contrast tests code
Post a Comment