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

Re: st: Permutation Test


From   Joseph Coveney <[email protected]>
To   Statalist <[email protected]>
Subject   Re: st: Permutation Test
Date   Fri, 18 Nov 2005 14:09:11 +0900

Raphael Fraser wrote:

In the first permutation test below Stata reports P=0.045, while in
the second permutation test Stata reports  P=0.063. I am of the
opinion that the two permutation tests are equivalent. Can anyone
explain why the P-values are different?

[redacted]

set seed 12345
permute count diff=r(diff), reps(1000) nowarn nodots: diff

set seed 12345
permute count "diff" diff=r(diff), reps(1000) nowarn

--------------------------------------------------------------------------------

They're not the same.  At least they're not if you're using Release 9.1:
type -help whatsnew-.

You might be able to get the same results under version control.

Joseph

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