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

st: RE: help with ksmirnov


From   "David Harrison" <[email protected]>
To   <[email protected]>
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: [email protected] [mailto:[email protected]]
Sent: 29 April 2005 01:30
To: [email protected]
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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index