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.