how to set the parameter of strata in adonis2 #600
-
Hi developer, |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 8 replies
-
For 1, you can do that {with
and then pass For 2, are your samples equally-spaced in time? |
Beta Was this translation helpful? Give feedback.
-
Please note that |
Beta Was this translation helpful? Give feedback.
-
Hi developer I want to do permutational analysis of variance to calculate variation between nematode haplotypes of the same species in samples , i have unbalanced haplotypes in samples and in regions (108 samples, 3 regions, sharing 27 haplotypes). Each sample has a range of between 1 to 9 haplotypes, I have built a pairwise distance matrix (hamming) for all haplotypes. I want to build an R script for performing analysis of molecular variance within samples and between samples in a regions and between regions (I have 3 regions). I guess my challenge is to build the correct dataframe shape ..i tried the nested design making Region and SampleID for each Haplotype so the rows match the dist matrix but it wouldnt run, and also i realize that i have to build it using the permute function over samples??? I also want to do an ordination for the different sample to show how they vary between the 3 regions |
Beta Was this translation helpful? Give feedback.
-
Thanks I will
Deo
…________________________________
From: Gavin Simpson ***@***.***>
Sent: Friday, August 2, 2024 11:32 AM
To: vegandevs/vegan ***@***.***>
Cc: Deodatus Ruganuza ***@***.***>; Comment ***@***.***>
Subject: Re: [vegandevs/vegan] how to set the parameter of strata in adonis2 (Discussion #600)
[△EXTERNAL]
Please don't jump onto an existing discussion; start a new discussion question instead. If you do, please note that you will need to explain what you want to do and your setting with more detail otherwise we can't possibly help.
—
Reply to this email directly, view it on GitHub<#600 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AP56GHK7EDVLDZHR4XKLGCLZPM73HAVCNFSM6AAAAABL4CZDHWVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAMRSGEYTQNI>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
You don't need to specify anything for
strata
— just don't even mention it:However I would suggest you do this via
rda()
because there is no easy way to exclude the betweensubject
variation:would stop any between
subject
variation getting counted in thetreatment
effect.As for your second design, you need to look at where the thing you want to test varies. Clearly it doesn't vary at the within-
subject
…