Hey
I´m trying to perform basic statistics on my dataset, determining whether values are correlated, but stata keeps returning the error code r(2000).
I´ve tried different commands such as:
- ranksum var, by (vargroup)
- ttest var, by (vargroup)
- tabulate var1 var2, exact
But stata keeps returning error code "no observations" r(2000)
Looking around the web i found that it might be because my variables isn´t nummerical but in string.
I therfore tried the destring command:
- destring varlist, generate(new_varlist)
This returned the following error code: "perform status already numeric no generate"
Same thing happens when i use
-encode varlist, generate (new_varlist)
I gather from this that my problem is not that my values are string, but something else.
I´m runnning out of ideas as to what might be the issue. any help would be greatly appreciated.
Related Posts with Stata returning "no observations r(2000)"
Graph combine formattingDear All, I am trying to combine coefficient plots from 3 different regressions. My data looks as f…
How toI have quite a simple problem. But STATA is new to me. my code is : y age gender: egen UIdur_mean …
Question about using if flag + tab togetherHi all, I am trying to create a Table 1 using Medicare claims to compare demographics among people …
Counting unique observations in a complicated data structureDear Statalist, I have a panel data on the level of towns and their administrative parts. Each town…
Trouble plotting standard deviation - Sigma convergenceHi, I am new to Stata and have been trying to plot the standard deviation of my whole sample and th…
Subscribe to:
Post Comments (Atom)
0 Response to Stata returning "no observations r(2000)"
Post a Comment