Announcement

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

  • Hurdle Poisson model marginal effects - STATA - Error r(133)

    Hi there,
    I am using Stata 13.

    I am trying to estimate the Hurdle Poisson model marginal effects. The author of "Health Econometrics Using STATA" estimates the two parts of the model and then uses suest followed by a series of local macros followed by margins to estimate the marginal effects. I am following his method and it seems I am running into an error that I can't figure out.

    Here's my code:
    Code:

    .

    local probit "invprobit(predict(eq(h1_AM0)))"
    local ey "exp(predict(eq(h2_AW2))) "
    local pygt0 "poissontail (exp(predict(eq(h2_AW2))),1)"
    margins, dydx(*) expression("`probit'*`ey'/`pygt0'")

    However, I got this error: Warning: cannot perform check for estimable functions.
    unknown function *exp()
    r(133);

    Can you help?
Working...
X