Announcement

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

  • Margins after ivreg2 - with partial option

    Dear all,

    I am running IV regression using ivreg2 with the partial option;

    Code:
    ivreg2 total i.year i.month i.HHID c.income##c.income (intake = count) [pw=weight], liml partial(i.HHID)
    I would like to compute marginal effects and use them for marginsplot. However, when I try to attempt to compute the margins for income, I get the following error
    default predict option not appropriate with margins
    .

    Is there anyway around this issue? Thank you for your help!

    Sincerely,

    Chiara

  • #2
    You'll increase your chances of a useful answer by following the FAQ on asking questions - provide Stata code in code delimiters, readable Stata output, and sample data using dataex.

    You can always estimate this with ivregress. Then the ivregress postestimation documentation will address what can and cannot be done in margins. It is obviously not guaranteed that user written routines like ivreg2 have the full capabilities built into almost all Stata provided routines.

    Comment

    Working...
    X