Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: ranksum


From   "Quang Nguyen" <[email protected]>
To   [email protected]
Subject   Re: st: ranksum
Date   Mon, 12 Feb 2007 15:16:07 -1000

Hi Peggy,

Can you double check the _randgrp_ variable and make sure that it
contains only "number" for all observations. If it contained
characters in some observations, you can use the _encode_ instead of
destring.

Have A Great Day!

On 2/12/07, P chrisman <[email protected]> wrote:
Hi List,

I am having difficulty using ranksum. The code I used is ranksum
livbirth, by(randgrp). I also tried

destring numpreg livbirth, generate(numpreg2 livbirth2)
numpreg already numeric; no generate
livbirth already numeric; no generate

. destring randgrp, generate(randgrp2)
randgrp contains non-numeric characters; no generate

Perhaps the solution to my problem is apparent, but I am not skilled
enough with Stata to see it. Any help is appreciated.
Thank you,
Peggy

*
*   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/

*
*   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