Announcement

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

  • modified Poisson regression model with mixed effects stata command

    Hello, does anyone have any quick command for modified Poisson regression model with mixed effects in stata? this command from the GLM- multilevel option does not seem to have option for within and between level variance estimates!
    meglm cp i.year if gender==2 & marital_status <3 [pweight = IQweight], family(poisson) link(log) eform

  • #2
    Well, the command you have shown, although you used the -meglm- command is actually a one-level -glm- problem. In fact, it is completely equivalent to -poisson cp i.year if gender == 2 & marital_status < 3 [pweight - IQweight]-. You haven't specified any hierarchy of levels there.

    It needs to be:
    Code:
    meglm cp i.year if gender==2 & marital_status <3 [pweight = IQweight] || some_variable:, family(poisson) link(log) eform
    where you replace some_variable by the name of the variable that defines the second level of the model.

    Also, you can save yourself a little typing by using -mepoisson- instead of -meglm- and omitting the -family(poisson) link(log)- part.

    Comment

    Working...
    X