Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: ranksum returns no observations r(2000)


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: ranksum returns no observations r(2000)
Date   Sun, 4 Jul 2004 21:00:58 +0100

One or both of these variables is 
probably a string variable. Check out -destring-. 

Nick 
[email protected] 

S�ren O'Neill
> 
> A newbie problem perhaps, but my data looks like this:
> 
> pk	pixels
> -------------
> 0	100
> 0	120
> 0	110
> 1	210
> 1	230
> 1	205
> 
> etc ... you get the idea...
> 
> running :
> ranksum pixels, by (pk)
> 
> returns:
> no observations
> r(2000);
> 
> However, if (instead of my own data) I use the dataset from 
> http://www.stata-press.com/data/r8/fuel2 (as described in the 
> [R] S-Z p. 63, 
> there is no problem at all ...

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index