Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: Re: Re: signranktest for groups
From
"Joseph Coveney" <[email protected]>
To
<[email protected]>
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/