Dear Stata Community,


I am trying to run the Probit command with many DVs for different years, I keep receiving the error (2000) message. None of my variables is string.
The period of the analysis is 5 years, I have 3 different dummy variables to be applied for these periods of years (DV1 for year 1 and 2, DV2 for year 2 and 3, DV3 for year 5)


My command is:
probit emp_stat urbdum1 age yrseduc Under5 if year == 2001


I was able to run the code for the first two years but substituting the DV and the year for the third period brings out the error r(2000) message saying "no observation"

My data looks like this:

Code:
* Example generated by -dataex-. To install: ssc install dataex
clear
input byte emp_stat int year float urbdum1 int age byte yrseduc float Under5
0 1995 1 40 10 0
1 1995 1 28 13 1
1 1995 1 23 13 0
0 1995 1 31 10 0
1 1995 1 37 13 0
1 1995 1 45 10 0
1 1995 1 47 12 0
1 1995 1 35 12 1
1 1995 1 35 12 1
0 1995 1 40 10 0
1 1995 1 39  . 0
1 1995 1 42 12 0
1 1995 1 21 12 0
1 1995 1 34 12 1
1 1995 1 41 12 0
1 1995 1 23 12 0
1 1995 1 55 13 0
1 1995 1 31 15 0
1 1995 1 46 12 0
1 1995 1 21 12 0
1 1995 1 34 15 1
0 1995 1 43 12 0
1 1995 1 29 13 1
1 1995 1 43 12 0
1 1995 1 36 12 0
1 1995 1 39 11 0
1 1995 1 45 12 0
1 1995 1 37 12 0
1 1995 1 41 12 0
1 1995 1 38 12 1
1 1995 1 39 12 0
1 1995 1 45 10 0
1 1995 1 36 11 1
1 1995 1 25 10 0
1 1995 1 27 12 0
1 1995 1 34  6 1
1 1995 1 38 10 1
1 1995 1 28  9 0
0 1995 1 31  9 1
1 1995 1 38  6 0
0 1995 1 22  9 1
1 1995 1 41  7 1
1 1995 1 26  8 1
1 1995 1 19 12 0
1 1995 1 20 12 1
1 1995 1 33 10 1
1 1995 1 43  9 0
1 1995 1 19 10 0
1 1995 1 23 12 0
1 1995 1 46  7 0
0 1995 1 23 10 0
1 1995 1 33 10 0
1 1995 1 42 13 0
1 1995 1 27 12 1
1 1995 1 25 12 0
1 1995 1 23 12 0
0 1995 1 20 11 1
1 1995 1 23 12 1
1 1995 1 39 12 0
1 1995 1 50  7 0
1 1995 1 33  8 0
1 1995 1 26 10 1
1 1995 1 19 12 1
1 1995 1 28  9 1
1 1995 1 29 12 0
1 1995 1 34  9 1
0 1995 1 20  7 1
1 1995 1 30  8 1
1 1995 1 43  9 0
1 1995 0 32 15 1
0 1995 0 29  8 0
0 1995 0 21 12 0
1 1995 0 22 12 0
1 1995 0 49  6 0
1 1995 0 50 12 0
1 1995 0 30  8 0
1 1995 0 41  6 1
1 1995 0 22  6 1
1 1995 0 24  6 1
1 1995 0 30  6 1
1 1995 0 52  6 0
1 1995 1 24 10 0
1 1995 1 30 12 0
1 1995 1 24 12 1
0 1995 1 28 12 1
0 1995 1 24 12 0
1 1995 1 43 10 0
0 1995 1 34 15 1
1 1995 1 32 12 0
1 1995 1 39 12 0
1 1995 1 54 10 0
1 1995 1 25 12 0
1 1995 1 28  8 0
1 1995 1 27 10 0
1 1995 1 42 12 0
1 1995 1 21 12 0
1 1995 1 24 12 0
1 1995 1 23 12 0
1 1995 1 26 12 1
1 1995 1 24 13 0
end
label values age age

What are your recommendations for this?