Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Signtest (statistics question)


From   Roger Newson <[email protected]>
To   [email protected]
Subject   Re: st: Signtest (statistics question)
Date   Mon, 12 May 2003 16:11:30 +0100

At 15:31 12/05/03 +0100, I wrote:

As I understand it, the sign test in Stata works by calculating sign(x1-x2), which is 1 if x1>x2, 2 if x1<x2, and 0 if x1==x2, and then compares the number of positive differences with a binomial with n equal to the number of non-zero differences.
Sorry, this should have been


As I understand it, the sign test in Stata works by calculating sign(x1-x2), which is 1 if x1>x2, -1 if x1<x2, and 0 if x1==x2, and then compares the number of positive differences with a binomial with n equal to the number of non-zero differences.
Thanks to Nick Cox for pointing out the typo.

Roger


--
Roger Newson
Lecturer in Medical Statistics
Department of Public Health Sciences
King's College London
5th Floor, Capital House
42 Weston Street
London SE1 3QD
United Kingdom

Tel: 020 7848 6648 International +44 20 7848 6648
Fax: 020 7848 6620 International +44 20 7848 6620
  or 020 7848 6605 International +44 20 7848 6605
Email: [email protected]

Opinions expressed are those of the author, not the institution.

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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