Hi everyone,

I'm getting errors when I run the following code:

oaxaca y x1 x2...x10, by(caste) pooled model2(ivregress 2sls, addrhs((lninc=iv1 iv2)))

where y = dependent var, x1, x2, ...,x10 are exogenous independent variables, lninc is endogenous independent var and iv1 and iv2 are the instruments.

I am using Stata 15.1 and I got the following error message:

option / not allowed
r(198);

end of do-file

r(198);

I will be glad, if anyone can help me to fix the problem in this command.

Thanks in advance for your cooperation,
S