Git Product home page Git Product logo

Comments (3)

ejwatson avatar ejwatson commented on July 17, 2024

This would be useful! I have two specific questions related to covariates for DivNet and betta. It's probably easiest to explain it in the context of my research questions.

I'm testing two similar hypotheses:

  • The first betta model tests the effect of maternal depression during pregnancy on (human) infant GM diversity, adjusting for a measure of socioeconomic status.
  • The second betta model tests the effect of maternal perceived stress during pregnancy on infant GM diversity, also adjusting for socioeconomic status.

First question: Do the covariates in DivNet and the betta model need to be the same? I'm excluding infants who received antibiotics, were birthed via C-section, or reported recent illness, so those variables aren't of concern. However, infant feeding status (breastfeeding vs formula) is a strong predictor of infant GM diversity. Since infant feeding doesn't confound (it may rather partially mediate...) the relationship between depression/stress during pregnancy and infant GM diversity, I don't think it's necessary to adjust for it in the betta hypothesis testing model. But, it's a strong predictor of GM diversity, so should I include it in the DivNet models to estimate Shannon diversity? Perhaps it would increase precision?

Second question: Should I run two separate DivNet models for each hypothesis to be tested using betta? (The first DivNet model with depression and the second with perceived stress instead, with SES (and possibly infant feeding) as a covariate in both)

from divnet.

ailurophilia avatar ailurophilia commented on July 17, 2024

Hi @ejwatson – I think it would be helpful to have a little more information here. Do you have technical replicate observations? If not, the simplest approach may be to use breakaway to estimate diversity in each sample and then use breakaway::betta to run your regression. If you do have technical replicates, I'd recommend using DivNet with a design matrix that groups technical replicates from the same specimen together (but doesn't include any other covariates). There's an example of how to do this in the DivNet beta diversity vignette.

from divnet.

adw96 avatar adw96 commented on July 17, 2024

Feel free to reopen @ejwatson, but closing since we haven't heard from you in a while 🙂

from divnet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.