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-
PPMLHDFE and LassoHi all, I'm looking to do some gravity modelling with a large number of rhs variables and interacti…
comparing prevalence bwteen quartilesDear all, I have a continuous variable X that i categorized into 4 quartiles (1,2,3 and 4). i also h…
Imposing Constraints on a Regression Model Using Stata.Hello Everyone, I intend estimating a regression model of the form: log(y) = ax1 + bx2 + cx3 + dx4.…
Dropping value label for a variableHi! I have a dataset in stata in which I want to string a numeric variable called bopael. When I tr…
gsem: a two-equation multilevel model with two random effectsDear all, I am running a two-equation multilevel model with random intercepts at the nation and reg…
Subscribe to:
Post Comments (Atom)
0 Response to Estimating adjusted mean difference by treatment group, following -regress-
Post a Comment