Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Re: Re: signranktest for groups


From   "Joseph Coveney" <jcoveney@bigplanet.com>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: Re: Re: signranktest for groups
Date   Mon, 30 Jul 2012 11:40:32 +0900

Maren Kandulla wrote:

Thanks for this information!
Unfortunately I do not have stata11. Is there any chance to get a version 
for stata 10?

--------------------------------------------------------------------------------

You happen to be in luck.  Install the user-written command -vanelteren- from
SSC.  Its use is illustrated below using the same dataset as before.

Joseph Coveney

P.S.  It would have been better had you said what your version of Stata is.  See
Section 3.3 of the Statalist FAQ (URL below).

version 10.1

*
* Create fake dataset for use in illustration
*
clear *
set more off
set seed 19195
quietly set obs 100
generate byte treatment = _n > _N / 2
generate byte child = _n
generate byte type0 = 1 + floor(4 * runiform())
generate byte type1 = 1 + floor(4 * runiform())

*
* Stratified on baseline type (t-test analogue)
*	
vanelteren type1, by(treatment) strata(type0)

exit




*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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   |   Site index