I'm trying to reproduce what I have in SPSS, in Stata.
It works when I run wsanova but I want to be able to run marginal effects, which appears to require I run it as anova.
Unfortunately I can't provide any of my data since it would violate our ethics protocols. But just looking to see if anyone can compare my wsanova and anova syntax and tell me what I'm doing wrong:
wsanova DRS data_point if unique_ID, id(unique_ID) bet (LTCH Sex LTCH*Sex)
anova DRS LTCH##Sex/unique_ID|LTCH#Sex data_point##LTCH##Sex, repeated(data_point) bseunit(unique_ID)
DV = DRS
IVs= Sex and LTCH
time variable= data_point
The within subject factor is data_point
the between subject factors are Sex, and LTCH and I want to know the results for Sex, LTCH and Sex*LTCH
Both Sex and LTCH are categorical and have 3 options each.
DRS is continuous scale
When I run the anova the within subject factor (data_point) is correct, and the interaction of Sex*LTCH is correct but Pre_LTCH and Sex_AA2's F-value, partial SS and significance are not correct.
It works when I run wsanova but I want to be able to run marginal effects, which appears to require I run it as anova.
Unfortunately I can't provide any of my data since it would violate our ethics protocols. But just looking to see if anyone can compare my wsanova and anova syntax and tell me what I'm doing wrong:
wsanova DRS data_point if unique_ID, id(unique_ID) bet (LTCH Sex LTCH*Sex)
anova DRS LTCH##Sex/unique_ID|LTCH#Sex data_point##LTCH##Sex, repeated(data_point) bseunit(unique_ID)
DV = DRS
IVs= Sex and LTCH
time variable= data_point
The within subject factor is data_point
the between subject factors are Sex, and LTCH and I want to know the results for Sex, LTCH and Sex*LTCH
Both Sex and LTCH are categorical and have 3 options each.
DRS is continuous scale
When I run the anova the within subject factor (data_point) is correct, and the interaction of Sex*LTCH is correct but Pre_LTCH and Sex_AA2's F-value, partial SS and significance are not correct.
Comment