Statalist


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

st: permute test statistic


From   "Hugh Robinson" <hugh.robinson@umontana.edu>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: permute test statistic
Date   Wed, 29 Apr 2009 20:09:11 -0600

Can anyone tell me how to code permute properly to test if one modeled
growth rate (mod1) is greater than another (mod2).
Variations on the code below give me a perfect p-value each time.  It
seems that I have to substitute something else for "mean" to come up
with the proper test statistic?

permute  Mod1 mean=r(mean), reps(200) right nodots nodrop nowarn:
summarize Mod2


An example of the data is below.

Row	Mod1		Mod2
1	1.113924	.7163003
2	1.122969	.7857646
3	1.057594	.7346777
4	1.153763	.8520272
5	1.148739	.8732744
6	.9890202	.7147149
.
.
.
1000	1.193932	.9315556


Thanks,
HR

Hugh S Robinson Ph.D.
Postdoctoral Researcher
Wildlife Biology Program
College of Forestry and Conservation
University of Montana
Missoula, MT 59802
(406) 243-2931


*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index