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
Loop command to generate 100 variables with mean 0 and standard deviations which increase from 1 to 100 How i can use the loop command to generate 100 variables var_1 to var_100, which are normally dist…
SUCRA in Stata 16Dear all, I have noticed that the SUCRA command for network meta-analysis is not working in Stata 1…
Transforming Quarterly Variables into Annual Variables - British Labour Force SurveyHi everyone, I am working on the British Labour Force Survey (LFS) data to explore the effects of m…
identifying follow-up dates closest to a certain valueHello. I have a dataset with multiple follow-up dates (fu1, fu2 etc.) and corresponding morbidity s…
gsem for latent class analysis_not concave issueHello dear Stata users, I want to run a latent class analysis with 37 variables and approximately 7…
Subscribe to:
Post Comments (Atom)
0 Response to ANCOVA - planned contrast tests code
Post a Comment