I am running a two stage hurdle model with the help of community contributed nehurdle command in Stata12. Everything was working fine till this afternoon but now when I run the command with the same variables and data, I get an r(430) error. I tried using just one repressor, as a diagnostic, but still get the same error. I have also tried using a different version of Stata (v11) but to no avail. Please help.
Example data and the command I am running is given below
Example data and the command I am running is given below
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input byte(total_member child_age child_gender tuition) int tuition_amount 4 12 1 . . 4 8 2 2 0 4 10 1 2 0 4 8 1 2 0 6 14 1 2 0 6 9 2 2 0 5 11 1 2 0 5 8 2 2 0 5 12 1 2 0 4 10 1 2 0 4 8 2 2 0 3 14 1 2 0 5 14 2 2 0 5 13 1 2 0 4 15 1 2 0 4 10 1 2 0 4 12 2 2 0 5 9 2 2 0 5 8 2 2 0 5 13 2 2 0 8 5 2 2 0 8 3 1 . . 7 10 2 2 0 7 13 2 2 0 5 7 1 2 0 5 6 2 2 0 5 8 2 2 0 7 11 2 2 0 7 4 2 . . 7 9 2 2 0 8 13 2 2 0 8 11 1 2 0 8 13 2 2 0 4 13 2 2 0 4 15 1 2 0 5 14 2 2 0 5 15 1 2 0 4 13 2 2 0 3 16 1 2 0 4 13 1 2 0 3 . . . . 2 . . . . 5 . . . . 6 16 2 2 0 4 5 2 2 0 5 5 2 2 0 6 5 1 2 0 2 . . . . 3 . . . . 5 . . . . 4 9 1 1 300 4 10 1 1 300 3 16 2 2 0 4 7 2 1 300 4 5 1 1 300 4 11 2 1 260 4 11 2 2 0 2 . . . . 3 11 1 2 0 3 11 2 2 0 3 . . . . 4 . . . . 2 . . . . 5 6 1 2 0 5 5 1 2 0 5 3 1 2 0 4 . . . . 12 11 2 . . 12 13 2 2 0 12 8 2 . . 12 6 1 . . 12 12 2 2 0 12 14 1 2 0 2 . . . . 8 7 2 2 0 3 . . . . 6 10 1 . . 6 3 1 . . 6 6 1 . . 4 . . . . 5 3 2 2 0 5 5 1 2 0 3 . . . . 3 3 1 . . . . . . . 4 . . . . 3 . . . . 4 . . . . 2 . . . . 7 5 2 . . 2 . . . . 4 10 1 . . 4 14 1 . . 9 9 2 . . 9 8 2 . . 4 4 2 2 0 5 14 2 2 0 5 6 1 2 0 5 4 2 2 0 5 10 2 2 0 end replace tuition_amount=0 if tuition==2 nehurdle tuition_amount child_age child_gender, trunc select(child_gender)
Comment