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
graph bar: sorting in case of displaying several variablesI would like to illustrate the responses of a survey question that allowed for choosing multiple res…
A really basic thing for <= and <, why returning the same result?Hi! I have a really basic question here, it's so strange, can someone help to identify where the pro…
missing standard error of coefficientHi everyone! I have a data set that I enclosed here. My dependent variable is tariff. The variable …
How can I combine many data sets into one having a common variable in each one?Hi all, I 'm dealing with panel data (monthly based) , having 7 different data sets it's difficult …
How to adjust response rates in repeated cross-sectonal studies?Hello, I am investigating changes in lifestyle during adolescence. Use a dataset that combines mult…
Subscribe to:
Post Comments (Atom)
0 Response to testparm vs. contrast
Post a Comment