Repository navigation
dbRDA residuals as response variable for adonis2? #764
Replies: 1 comment
|
I believe this has been sufficiently answered here: https://stats.stackexchange.com/questions/672483/using-the-residuals-of-a-dbrda-analysis-as-a-response-in-an-adonis2-analysis Thanks! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I am working on what I thought was a pretty straightforward question that many have explored before: What environmental variables explain differences between biological communities? I have presence-absence data for about 100 communities, and I have calculated pairwise turnover (Jaccard and UniFrac distances) for every pair of communities. I have a handful of environmental predictor variables, both categorical (e.g., soil type) and continuous (e.g., mean annual temp).
To this point, it makes sense to me that adonis2 would be straightforward to use—something like
adonis2(unifrac ~ soil_type + mean_ann_temp). However, because my communities are distributed continentally, I have several other variables, like the sampling year, latitude, and longitude, among others, that I'd like to account for before using the adonis2 function.My question is, is there a way to account for these variables in adonis2 first and then see the marginal effect of the variables of interest afterward? Alternatively, is it reasonable to first run
dbrda()using the variables I want to take into account, and feed the residuals of that into adonis2 with my predictor variables of interest? Thanks in advance!Here's an example of what I mean, using the mite dataset:
Let's say I want to account for x, y, and Shrub before I look at SubsDens and WatrCont
Alternatively, use dbrda to remove the effect of x, y, and Shrub from mite.dist
All reactions