Help understanding strata option for anosim/adonis
mradz19 opened this issue · 0 comments
I want to look for differences between my samples based on whether they responded to a drug treatment or not, but I am comparing pre and post treatment samples.
For example, my samples are as follows:
Patient 1 has a pre and post sample and did respond to treatment
Patient 2 has a pre and post sample and did not respond to treatment
I want to know if there are any differences within the microbial community of patients who responded compared to those who didnt
Is this code the correct way to do this?
adonis(bray_dist ~ sample_data(physeq)$Response, method = "bray", strata=sample_data(physeq)$Treatment)
Where response is the column of my metadata specifying if they responded or not and treatment is the column specifying if the sample is pre or post treatment