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)"
Interpretation of long and short run coefficients in ARDL modelHi, I needed some help understanding how to interpret the short and long run coefficients of ARDL m…
sorting and creation of variablesHi everyone, I have two questions for you. I have a panel in which I have date, ID, company and out…
Copy variable values into a data structure?Hello Xperts, Just wondering if there is any way in STATA to capture all the values (ignoring missi…
Turning numeric variable into stata time variableI have a dataset broken into date and time of the day. I want to break this time variable into hour …
Number format which does not add zeros to natural numbersI want Stata to show decimals only for numbers which are not natural. For instance - I want the numb…
Subscribe to:
Post Comments (Atom)
0 Response to Stata returning "no observations r(2000)"
Post a Comment