I am trying to run a PERMANOVA analysis on the bray-cutis dissimilarities between my samples, but I need to nest sample days within time of day. I read that the "strata" function in adonis2 constricts the permutations, but I can't get this code to run and I am unsure if this is equivalent to nested terms.
Here is some variations in adonis2 that I tried:
adonis2 (bc_long ~ Height + Timeofday2/Day_groups + Day_groups + HeightTimeofday2/Day_groups + HeightDay_groups, data=meta_long, permutations = 2000, na.action = na.omit) ##This does not include strata, and I just included nested terms. The code runs, but I don't trust the results I get back since I am unsure if adonis2 reads the nested syntax I used.
adonis2 (bc_long ~ Height + Timeofday2, strata = Day_groups, data=long_diel2, permutations = 2000) ##This code does not run, and here is the error I get: Error in qr.fitted(qrhs, G) : 'qr' and 'y' must have the same number of rows