Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • consistency when splitting a dependent variable

    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:

    Code:
    reg attendtotal x1 x2
    (I'm actually using poisson regression)

    So this gives me a functional output with coefficient of

    Code:
    attendtotal=A*x1 + B*x2 + Const
    However, I also have a disaggregation of attendtotal by different reasons. E.g. to give

    Code:
    attendresons1=a1*x1 + b1*x2 + Const1
    attendresons2=a2*x1 + b2*x2 + Const2
    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:

    Code:
    a1 + a2 = A
    b1 + b2 = B
    Const1 + Const2 = Const
    Thanks
    Rob

  • #2
    Rob:
    you may want to separate the reason for hospitalzation from the number of hospital referrrals and include is as a categorical predictor in the right-hand side of your regression equation.
    Last edited by Carlo Lazzaro; 03 Mar 2023, 02:47.
    Kind regards,
    Carlo
    (Stata 19.0)

    Comment

    Working...
    X