Hi, guys!

I received an error message "estimates post: matrix has missing values" when i'm using ivreg2. I've checked that there's no missing values in the y and controls. I really don't know how to handle this issue, any ideas are appreciated!!

Here's my stata codes:

local x1 male age agesq tmperiod
local x2 s_age
local x3 h_dfct

xi: ivreg2 y (x = iv) `x1' i.educ i.employer2 i.industry i.marea `x2' i.s_educ `x3' i.p_prefect [pw = w_l], cluster(i.home_pref i.p_prefect) partial(i.p_prefect) first

Best!
Leo