Re: [R] non-parametric permutation and signed paired-difference distributions

2011-10-14 Thread Michael Friendly
On 10/14/2011 4:10 PM, Bert Gunter wrote: If I understand what you want to do, it's simple. 2^15 is small (only about 33000), so you can generate all the possible means (sums, actually) and and find the population quantile for your result. If avals is the vector of 15 absolute values, the compl

Re: [R] non-parametric permutation and signed paired-difference distributions

2011-10-14 Thread Bert Gunter
If I understand what you want to do, it's simple. 2^15 is small (only about 33000), so you can generate all the possible means (sums, actually) and and find the population quantile for your result. If avals is the vector of 15 absolute values, the complete distribution is: allsums <- as.matrix(exp

Re: [R] non-parametric permutation and signed paired-difference distributions

2011-10-14 Thread Michael Friendly
On 10/14/2011 1:20 PM, Weidong Gu wrote: On Fri, Oct 14, 2011 at 11:38 AM, Michael Friendly wrote: Hi all Consider the classic data below from Darwin on the heights of 15 pairs of zea mays (corn) plants either cross-fertilized or self-fertilized, where the goal is to see if it makes a differenc

Re: [R] non-parametric permutation and signed paired-difference distributions

2011-10-14 Thread Jean V Adams
Michael Friendly wrote on 10/14/2011 10:38:44 AM: > > Hi all > Consider the classic data below from Darwin on the heights of 15 pairs > of zea mays (corn) plants > either cross-fertilized or self-fertilized, where the goal is to see if > it makes a difference. > > > head(ZeaMays) >pair pot

Re: [R] non-parametric permutation and signed paired-difference distributions

2011-10-14 Thread Weidong Gu
On Fri, Oct 14, 2011 at 11:38 AM, Michael Friendly wrote: > Hi all > Consider the classic data below from Darwin on the heights of 15 pairs of > zea mays (corn) plants > either cross-fertilized or self-fertilized, where the goal is to see if it > makes a difference. > >> head(ZeaMays) >  pair pot

[R] non-parametric permutation and signed paired-difference distributions

2011-10-14 Thread Michael Friendly
Hi all Consider the classic data below from Darwin on the heights of 15 pairs of zea mays (corn) plants either cross-fertilized or self-fertilized, where the goal is to see if it makes a difference. > head(ZeaMays) pair pot cross self diff 11 1 23.500 17.375 6.125 22 1 12.0