adw96 / DivNet

diversity estimation under ecological networks
83 stars 18 forks source link

Understanding the use of "X" in divnet() function #52

Closed gregpoore closed 4 years ago

gregpoore commented 4 years ago

Hi Amy,

I'm in Rob Knight's lab and excited to see (and use) your DivNet package — congrats on the in press acceptance! I have a question regarding the use of the covariate matrix ("X") in the divnet() function. The example given in your tutorial uses the Lee dataset, picking "char" (basalts of different characteristics) as the covariate. I understand that this is useful when sampling from different environments, but I'm not entirely if it would include samples from the same environment that are affected by external factors. A few examples:

Is it permissible to use these differences as covariates ("X") for the divnet() function (e.g. antibiotic vs. non-antibiotic gut samples) even though they're technically sampled from the same environment?

Thanks a ton!