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