# st: Re: Problem with permute

 From "Paul Fenner" <[email protected]> To [email protected] Subject st: Re: Problem with permute Date Thu, 27 Jan 2005 15:35:11 +0000

When I use the signrank test signrank y=0 I get the following result:
. signrank y=0

Ho: y = 0
z = 3.002
Prob > |z| = 0.0027

I then tried permute

permute y "signrank y=0" z=r(z), reps(1000) nowarn

command: signrank y=0
statistic: z = r(z)
permute var: y

Monte Carlo permutation statistics Number of obs = 20
Replications = 1000

------------------------------------------------------------------------------
T | T(obs) c n p=c/n SE(p) [95% Conf. Interval]
-------------+----------------------------------------------------------------
z | 3.002347 1000 1000 1.0000 0.0000 .9963179 1
------------------------------------------------------------------------------
Note: confidence interval is with respect to p=c/n
Note: c = #{|T| >= |T(obs)|}

Would somebody please explain what is wrong with my syntax - or am I just misunderstanding the output.
Thanks, Paul F.

_________________________________________________________________
It's fast, it's easy and it's free. Get MSN Messenger today! http://www.msn.co.uk/messenger

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