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
6 groups in one graphHello everyone, I want to have a graph with 6 groups in it. I am able to produce a graph with 6 sm…
How do I get the direct, indirect, and total marginal effects from a probit model with spatial lags?I have searched for Stata commands or routines for spatial probit regression but I could not find on…
Print out matrix values in the process of Mata functionHello all, I was trying to print out intermediate matrix results in order to debug my Mata function…
Installing an ado-fileHi, I have dowloaded an ado-file for updating the mvdcmp command but I'm not able to install the pac…
Overlay predicted probabilities from separate logistic regressionsI would like to overlay predicted probabilities from two separate logistic regressions. My outcome o…
Subscribe to:
Post Comments (Atom)
0 Response to ANCOVA - planned contrast tests code
Post a Comment