I am looking to calculate the adjusted mean difference in heart rate by treatment groups (alloc) - this is a binary 0/1 variable, 0=placebo, 1=intervention. I have performed a regress command with finalhr as the dependent variable, i.alloc as the predictor, and adjusted for covariates basehr x y and z. finalhr had to be log-transformed so i used eform() to antiolog coefficients (not sure if this is correct either)
Final code looks like regress finalhr i.alloc basehr x y z
The regress runs well and satisfies assumptions, but I would like to estimate the adjusted mean difference in heart rate, by treatment group.
I tried -margins r.alloc, atmeans- but I don't believe this worked (it may have worked and I may be wrong).
Any help on how to estimate this adjusted mean difference would be much appreciated. Apologies if the answer is something easy, I have very little experience in statistics and with a deadline fast approaching, my internet research has not got me far.
Thanks.
Related Posts with Estimating adjusted mean difference by treatment group, following -regress-
Standard errors with new -xthdidregress- command in Stata 18I am trying to understand how -xthdidregress- estimates standard errors for difference-in-difference…
Understanding and interpreting the large coefficients of control variables in my results tableHi, I am running a panel regression with a DiD setup and fixed-effects. I have obtained significant…
Choosing the Correct Panel Data ModelHi there, I am estimating a fiscal reaction function in dynamic form (lagged dependent variable) and…
How to identify the minimum year of membership to the agreement between the pairs that are symmetricDear All, I have data on trade agreements and membership to the WTO between country (i) and country …
xtdidregress problem: not all my data is usedHello, I am writing my master thesis and I have to find the causal relationship between the Belgian…
Subscribe to:
Post Comments (Atom)
0 Response to Estimating adjusted mean difference by treatment group, following -regress-
Post a Comment