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

st: RE: help with ksmirnov


From   "David Harrison" <david.harrison@icnarc.org>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: help with ksmirnov
Date   Fri, 29 Apr 2005 12:41:22 +0100

-ksmirnov- expects the data to be in "long" format rather than "wide" format. You can easily get from one to the other with the -reshape- command, e.g.

gen id=_n
reshape long v, i(id) j(group)
ksmirnov v, by(group)

Hope this helps

David

-----Original Message-----
From: ag2050@columbia.edu [mailto:ag2050@columbia.edu]
Sent: 29 April 2005 01:30
To: statalist@hsphsun2.harvard.edu
Subject: st: help with ksmirnov


I'm a graduate student working on my thesis and am having trouble
with syntax. I would like to use ksmirnov to compare variable
called "v2" (my data) with variable called "v1" (national data).
Both groups are made up of ages. Any suggestions? Thank you.

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index