Bookmark and Share

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: error in -vanelteren- (1 group found, 2 required)


From   "Ariel Linden" <[email protected]>
To   <[email protected]>
Subject   st: error in -vanelteren- (1 group found, 2 required)
Date   Sat, 18 Jan 2014 14:58:40 -0500

Hi All,

I am getting an error when running the user-written program -valelteren-
(written by J. Coveney, downloaded from ssc).

The error message states that 1 group is found when 2 are required.  Clearly
there are 2 groups in the specified variable.

I emailed the author of code at two different email addresses but he's so
far non-responsive. 

Does anyone else experience this error? I am running Stata v 13.1

Ariel


****code****
.sysuse auto
. vanelteren price, by(foreign) strata( rep78 )
(1978 Automobile Data)

Generalized Wilcoxon-Mann-Whitney Ranksum Test (van Elteren's Test)


Variance of
Weighted Expected Weighted
Stratum | n | Ranksum | Ranksum | Ranksum
-------------+-------+-----------+----------+-------------
1 group found, 2 required
r(499);

. webuse cattaneo2
. vanelteren bweight, by(mbsmoke) strata(medu)
(Excerpt from Cattaneo (2010) Journal of Econometrics 155: 138-154)

Generalized Wilcoxon-Mann-Whitney Ranksum Test (van Elteren's Test)


Variance of
Weighted Expected Weighted
Stratum | n | Ranksum | Ranksum | Ranksum
-------------+-------+-----------+----------+-------------
0 | 42 | 18.08 | 15.5 | 0.660
1 group found, 2 required
r(499);
****end code****



*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index