Statalist


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

st: -Makematrix- and -signrank-


From   "Herve STOLOWY" <[email protected]>
To   <[email protected]>
Subject   st: -Makematrix- and -signrank-
Date   Fri, 13 Feb 2009 19:33:37 +0100

Dear Statalisters:

In the past, I used -makematrix- (downloadable from ssc) in conjunction with -ranksum- without any difficulty. I used the following command:  
makematrix m1, from(r(z) 2*normprob(-abs(r(z)))) : ranksum offer, by(info).

Now, I want to use -makematrix- in conjunction with signrank. In a different file, I have splitted my variable offer in two: offer0 and offer1.

I do:  signrank offer0 = offer1 and I get the following output:

Wilcoxon signed-rank test

        sign |      obs   sum ranks    expected
-------------+---------------------------------
    positive |       12        9780     16707.5
    negative |       29       23635     16707.5
        zero |      794      315615      315615
-------------+---------------------------------
         all |      835      349030      349030

unadjusted variance    48602428
adjustment for ties       -1435
adjustment for zeros  -41792686
                     ----------
adjusted variance     6808306.3

Ho: offer0 = offer1
             z =  -2.655
    Prob > |z| =   0.0079

When I do:

makematrix m1, from(r(z) 2*normprob(-abs(r(z)))) : signrank offer0 = offer1

I get an error message: invalid syntax.

Would you have any idea?

Best regards

Herve Stolowy



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