Open elp9 opened 6 years ago
Late to the party here, but you can add a term to 'partial out' in your formula, something like this:
formula = ~ Sample.infection + Condition(Day)
More info here: https://www.rdocumentation.org/packages/vegan/versions/2.4-2/topics/capscale
Hi,
I am performing a PCoA using ordinate (see below) to see if microbiota differs or not between gut sections that are uninfected or infected with parasites.
CAP ordinate
bray_stomach_samples_ord <- ordinate( physeq = stomach_samples_scale, method = "CAP", distance = bray_stomach_samples, formula = ~ Sample.infection )
anova(bray_stomach_samples_ord)
However, for "Sample.infection" there may be multiple samples from a given individual which may confound results? Is there any way I can control for repeat samples from an individual? To complicate matters the number of repeat samples is not consistent between individuals!