Statalist


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

Re: st: m stat for sign test


From   Chris Witte <[email protected]>
To   [email protected]
Subject   Re: st: m stat for sign test
Date   Thu, 9 Oct 2008 12:19:48 -0700 (PDT)

ok, and then I can get the M stat by:
 
display (r(N_pos)-r(N_neg))/2
 
correct?



----- Original Message ----
From: Richard Goldstein <[email protected]>
To: [email protected]
Sent: Thursday, October 9, 2008 1:53:42 PM
Subject: Re: st: m stat for sign test

this information is saved by Stata as part of standard practice -- to 
see what is saved type -return li- after you run -signtest- or look at 
the help file or the manual

Rich

Chris Witte wrote:
> The excerpt below is taken from SAS's help.  This is what I would like in addition to the p-value:
> 
> Sign Test
> 
> PROC UNIVARIATE calculates the sign test statistic as 
> 
> M=(n+ -n- )/2 
> 
> where n+ is the number of values that are greater than mu_o and n- is the number of values that are less than mu_o. Values equal to mu_o are discarded. Under the null hypothesis that the population median is equal to mu_o
*
*  For searches and help try:
*  http://www.stata.com/help.cgi?searchhttp://www.stata.com/support/statalist/faqhttp://www.ats.ucla.edu/stat/stata/



      

*
*   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