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
Drop last 7 characters from obsrevations if they have certain charactersHello, This is my first post, so please excuse me. I have one variable with observations like this…
How relevant are stochastic trends in a panel with T<<N?The panel dimensions are N=170 and T=21 and the estimated model is a dynamic panel estimated using x…
Problem with generating new variable-- Need help pleaseHello everyone, I need help in generating a new variable based on an existing one. The existed vari…
Testing equality of Poisson regression coefficients in two groups using ppmlhdfeDear all, How do you test Poisson coefficients in two groups? Because I have multi-way fixed effect…
Error "Option not allowed" when creating coefHey guys, my goal is to regress the natural logarithm of total industry sales and an index variable…
Subscribe to:
Post Comments (Atom)
0 Response to testparm vs. contrast
Post a Comment