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-
iterations - stteffects ipwraHello, I am attempting to the stteffects ipwra in order to study the effect of drug1 on time to deat…
Using loop for tabout commandI am running the following command: Code: foreach var of varlist ` Age - Region Smoking Alcohol '…
Assigning dates and days of week in a long datasetHello, I have a long dataset with observations that represent all of the days that a person was enr…
Creating IRF plots after ARIMAHello, For reasons I cannot figure out, I am able to create IRF plots after an ARIMA regression usi…
How do I compare different levels of a categorical variable?I am trying to do a study to see whether different groups of households are dissimilar or not regard…
Subscribe to:
Post Comments (Atom)
0 Response to Estimating adjusted mean difference by treatment group, following -regress-
Post a Comment