Skip to content
Prev 206810 / 398503 Next

restricted permutations in permutest()?

On Tue, 2010-01-19 at 06:19 -0800, Kay Cichini wrote:
As I said, you *can't* do this in vegan yet. I interfaced
permutest.betadisper with an earlier version of the code now in the
'permute' package as an example of how we might go ahead and implement
these fancier permutation tests within vegan. I'd be very surprised if
manipulating the control object would work.

You (still) haven't said what you are trying to do and what the
dependence structure is relative to the groups in your data that
permutest is trying to test.
I should probably add a note to the docs to mention not to do this at
this stage in vegan...
If everything was working, yes, that was the intention at the time, that
the strata (the chunks of 4 samples) would be permuted as a block but
the sample ordering within the strata would remain unchanged.
No, that would only be 'Yes' if you wanted to permute the observations
*within* the strata, but you are permuting the strata themselves.

What you have understood from the docs is not what they say nor the
intention. I accept that the documentation could be clearer in this
regard.

Again, can you show me your code that fitted the betadisper model in the
first place and how you defined the groups for that analysis. Do these
differ from blocks above? The whole point of betadisper is that you have
groups and you want to know if the dispersion of the sample scores
differs between groups. Whether it makes sense to condition the
permutation tests on some other structure is not yet clear to me from
your postings.

In summary, I would caution against do this unless you take a very close
look at the code and examples in permuted.index2 to confirm for yourself
that the permutation design you are specifying is being permuted
correctly.

The code in package 'permute' *does* work correctly and is capable of
more complex designs but in situations where you have only a small
number of permutations, sanity checking code kicks in and it is this
code that currently doesn't work within 'permute'.

Again, if you would like some help with a specific permutation design,
please start a new thread in the r-forge vegan help forum and post the
exact code you used to fit the betadisper model, define your groups etc.
Then I can provide further assistance.

HTH

G