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)"
How to run Quantile regression with a dependent categorical variableDear all, Is there any way to run Quantile regression using a dependent categorical variable. I hav…
Meta-analysis: inverse variance heterogeneity modelDear all, I am trying to perform a meta-analysis using the inverse variance heterogeneity model as …
cmp for instrumental multinomial probit when there is cluster, baseoutcome, if conditionsI have been running non-instrumental multinomial probit that roughly looks like Code: mprobit Y X…
Comparing 2 mean changes per year for statistical difference?Dear Stata users, I have calculated mean changes in eGFR in 2 groups using mixed model. Group 1 me…
Using DateTime as Independent Variable - Regression Discontinuity in TimeHi everyone! In the same vein as Davis (http://faculty.haas.berkeley.edu/lda...JPE%202008.pdf), I w…
Subscribe to:
Post Comments (Atom)
0 Response to Stata returning "no observations r(2000)"
Post a Comment