I have 3 variables for which I need to run poisson regressions. The are called el, dc and tot. The independent variables are called year and post and I need the coefficients on year from el+dc to equal tot.. Although in my data el+dc=tot, in general the coefficients will not fit my constraint when using poisson because ln(A)+ln(B)<>ln(A+B).
In pseudocode summary:
Can anyone advise how this can be run in Stata (I'm using v15.1) please?
In pseudocode summary:
Code:
poisson el = {a1} + {b1}*year + {c1}*post poisson dc = {a2} + {b2}*year + {c2}*post poisson tot = {a3} + {b3}*year + {c3}*post constraint {b1}+{b2}={b3}
Comment