error r(2000) no observations

3,687 views
Skip to first unread message

bertalob...@gmail.com

unread,
Dec 17, 2012, 11:24:58 AM12/17/12
to stata-us...@googlegroups.com
Hello,


I am having some problems when I trying to do the regression model tobit. I am insert the data and then, when I select statistics and choose the tobit model appears this error: no observations r(2000). Can you help me?

I send the print of the error.


Thank´s 
Berta Pacheco



 
error stata.png

J

unread,
Dec 17, 2012, 12:05:52 PM12/17/12
to stata-us...@googlegroups.com
Berta,
   It looks like all of your variables are strings rather than numeric values. You to convert the strings to numeric values. For example, look at the command destring.

Joseph 

bertalob...@gmail.com

unread,
Dec 17, 2012, 5:06:00 PM12/17/12
to stata-us...@googlegroups.com

Joseph Cullen

unread,
Dec 17, 2012, 5:53:48 PM12/17/12
to stata-us...@googlegroups.com
You are generating all missing values. Read in the manual about missing values and the function "destring".  "Real" is not the function you want to use.


On Monday, December 17, 2012 at 4:43 PM, bertalob...@gmail.com wrote:

Thank's,


I generate the new variables and then I select to do the tobit model and the error "no observations" still appearing. I send the print of the error.

eric.a.booth

unread,
Mar 11, 2013, 3:36:29 PM3/11/13
to stata-us...@googlegroups.com
Berta - I realize this is an old thread, but (1) J's advice is correct, you need to use -destring- on all your variables in the model and (2) your screenshot shows that you are using an illegal copy of Stata, you should consider purchasing a license.

- EAB
Reply all
Reply to author
Forward
0 new messages