Hi,
I am fitting a model with a continuous outcome and an interaction between two binary predictors on the righthand side. In addition to measuring the interaction as a departure from additivity, which is what the coefficient of the interaction term implies, I would also like to calculate the interaction effect on the multiplicative scale. VanderWeele and Knol (2014, p. 60) point out that this can be done by fitting a log-linear regression. I am wondering if, instead, such a measure can be calculated using margins and nlcom?
After margins, I ran:
nlcom ln((_b[4._at]/_b[3._at])/(_b[2._at]/_b[1._at])).
But I am not sure if this is producing the estimate I am interested in. Any advice would be much appreciated.
I should mention that the reason I do not want to run a log-linear regression (in this context, I use this term to mean taking the log of the continuous outcome) is because my outcome is a standardized scale and has negative values.
Thank you!
Robbie Dembo
Related Posts with Multiplicative interaction with a continuous outcome
How to code to calculate Buy-and-hold Abnormal Return (BHAR)We use the income from May of T+1 to April of T+2 as T annual income.BHAR is equal to the multiplier…
How to browse data with complicated conditionI have firm-level data for 2010-2015. I would like to browse variable output and capital for specifi…
Help with time-dependent variable in longitudinal dataHi everyone, I am working on panel data as shown below: I want to generate a time-dependent covar…
Random sampleHello to all, I try to learn stata by myself as a economist, So I want to make a boucle to make a r…
spmap location of geographic labelsHi, I am using a shapefile for the UK regions (NUTS1) from https://data.gov.uk/dataset/2aa6727d...u…
Subscribe to:
Post Comments (Atom)
0 Response to Multiplicative interaction with a continuous outcome
Post a Comment