I am using the IVreg2 command to run an IV regression of a sub-sample of my data but I keep getting the message Mata run-time error 3351. The same model worked well for the full sample. When I dropped half of the sample because I need to re-run the same model on a sub-sample, I got the error. before that I tried to add the the conditional command at the end of the model by using "if sub-sample varname", but I got the same message. I dropped part of the sample using "drop if varname". I also tried "drop if varname ==0" , all these bring the same error. Please help
Teopista
Teopista
Comment