I'm running a regression on hospitalisation data. Each observation is a individual person and the dependent variables is the number of hospital attendances per person. In simplified form:
(I'm actually using poisson regression)
So this gives me a functional output with coefficient of
However, I also have a disaggregation of attendtotal by different reasons. E.g. to give
The problem is that some of the individual reasons have very small numbers. So my question is, is it possible to run a structured set of regressions with the constraints that:
Thanks
Rob
Code:
reg attendtotal x1 x2
So this gives me a functional output with coefficient of
Code:
attendtotal=A*x1 + B*x2 + Const
Code:
attendresons1=a1*x1 + b1*x2 + Const1 attendresons2=a2*x1 + b2*x2 + Const2
Code:
a1 + a2 = A b1 + b2 = B Const1 + Const2 = Const
Rob

Comment