Dear Listers,
I am looking into the difference between testparm and contrast following a regression model. Reading online, it seems that testparm computes a Wald test which determines whether the variable improves the model while contrast produces comparisons akin to ANOVA tests.
I am interested in the impact of different therapies on anxiety scores. I have three treatments I am comparing but to get my head around what is happening I start with comparing 2 of them only and I adjust for baseline scores of anxity. My model looks like this in Stata 16:
regress anxiety i.treatment anxiety_base
The regression coefficient for treatment is 0.69 (95%CI:-0.41 to 1.85), p = .22
if I type testparm i.treatment, I get
F(1, 134) = 1.46, p = .22 which is in line with the regression coefficient
when I type contrast i.product (or r.product which eventually I plan to use when comparing all 3 treatments), I get: F(1) = 7.6, p = .007
why is the contrast so different and what approach should be used to compare contrasts between specific treatments? Feel free to point me to any relevant resource.
Thanks in advance
Related Posts with testparm vs. contrast
Moderator with control variableArray How should I interpret the X, the moderator and control variable? I know the effect of X is i…
Omitting Certain Interacted Categorical VariablesI'm trying to implement the Sun & Abraham (2020) correction for an event study with heterogeneou…
Graphical representation - plotting (moderation)When plotting predicted values of Y across the range of X and with the moderator. (At 5th percentile…
STATA user - NIS (National Inpatient Sample Database) helpI am trying to get get the study population with certain cancer diagnoses (ICD10 codes) admitted as …
Partially meditated - hypothesisX, Mediator and Y Total effect: 99.693 *** Direct effect: 86.516 *** 13% of the X on Y goes via the …
Subscribe to:
Post Comments (Atom)
0 Response to testparm vs. contrast
Post a Comment