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-
How to display the mean on a graph pieHello. Is there a way to display the mean when I create a graph pie ? My current code is Code: g…
Robust or Clustered Standard ErrorsDear all, I am currently examining the impact of annual average sunset time on sleep duration of ch…
How to change a trinary variable into a binary with label in 1 lineHello. I have to recode a trinary variable "a6a" : 1=small, 2=medium, 3=large. Into a binary variab…
Running regressions without normally distributed residualsHi, I have a question about a regression that I am running for my Bachelor thesis. I do not have no…
Need help with combining plots and figuresI need help with the following issues: 1. Combining Plots I have the following syntax for my plots:…
Subscribe to:
Post Comments (Atom)
0 Response to Estimating adjusted mean difference by treatment group, following -regress-
Post a Comment