-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Help strata argument in adonis function #384
Comments
You should not quote |
Basically it can be regarded as meaning that. The |
Thanks for confirming that. So if I understand correctly what you say, the effect of Ever_Colonized is studied within each resident? The only thing I am not sure about in that case is the following: Alternatively, I have another variable where there is a mix of 'yes' and 'no' based on sample-based colonization (the ever_colonization variable was a yes if an individual was positive on at least 1 time point, and negative if never positive), so here there can be variation in the outcome within each resident (some samples of a resident can be positive, some can be negative). So if what I understood above is correct, it would perhaps make more sense to use strata in this case? Kind regards, |
Hello, I am also interested in this problem. An experimental design with measurement on pre-post treatment on a subject/patient/plot, is a very common scenario in ecology, but the correct implementation in adonis or adonis2, still remains a a mystery, subject to many discussions on various forums on the internet. Thanks! |
All of this would be clearer if people use |
@gavinsimpson Hi Gavin, thanks a lot for your comment (and for making me discovering your blog!). So you are suggesting that condition can be used as a sort of random variable in dbRDA? The formula, using dbRDA would be the following? In case I would have more than 1 explanatory variable, then I could also check the significance of each variable with |
Hello everyone, I think I figured it out but using adonis2
It appears to me the best way as I am restricting the permutations within patients. Cheers, |
Following up,
Should be the right code with dbrda, correct? |
Hi @gavinsimpson . Did you have the chance to look at this and confirm that this is correct? Thanks in advance and also thanks for your awesome work! |
Dear,
For my study, I have repeated measurements and I want to account for this in the adonis function using the strata() function. I have either 2, 3 or 4 samples (16S based data) per individual (total of 27 individuals) and want to investigate whether there is an overall difference in individuals based on their disease status, the Ever_Colonized group (see below) (yes/no), while accounting for the repeated measurements. So I thought I could do this using the following code:
However, I get the following error:
I am not sure what caused this, but by what I could find online, it is likely due to the fact that adonis requires purely balanced design (same nr samples/individual). Is this correct? And if so, what is the solution for this? In any case I am wondering what is the best approach, as the number of samples/individual indicates the number of permutations will be quite low
Best,
Quinten
The text was updated successfully, but these errors were encountered: