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/