Skip to content

Linear model strategy, post hoc tests, and modeling specific taxa in MicrobiomeStat #78

@lauraflows

Description

@lauraflows

Hello,

Thank you for developing MicrobiomeStat — it's a very helpful and well-designed tool!
I'm new to applying linear models to microbiome data and would appreciate your advice on a few analysis questions.

My experimental design is relatively simple:

4 groups (n = 6 per group): 1 control and 3 treatment conditions

2 time points: T0 and 20 weeks later (T20)

Here are my main questions:

  • When using generate_alpha_test_pair, the complex model often fails with the message:

Complex model failed. Trying a simpler model...
boundary (singular) fit: see help('isSingular')

In such cases, is it statistically valid to rely on the simpler linear model fallback?

  • I'm interested in between-group differences at T0, within-group changes over time, and differences between treatments at T20 — ideally including multiple comparisons.
    What kind of post hoc comparisons would you recommend in this context? For example, would you use something like Tukey HSD, or is there a more appropriate approach for microbiome data?

  • Finally, I’d like to analyze specific families (e.g., changes in the relative abundance of a single taxon).
    What modeling strategy would you suggest? Should I extract those features manually and analyze them separately (e.g., using CLR-transformed or raw relative abundance values)?

Thank you again for your time — I really appreciate both the tool and any guidance you can share.

Best regards,
Laura

Metadata

Metadata

Assignees

No one assigned

    Labels

    By DesignThis behavior is intentional and is part of the package's design. It's not considered a bug or an is

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions