Skip to content

differentialTest failing on relatively simple model #129

@mirpie

Description

@mirpie

Hello!

I'm trying to run a relatively simple model as follows:
ex1 <- differentialTest(formula = ~ GENOTYPE + Stress, formula_null = ~ GENOTYPE, data = dat_pr_OBIT_f, test = "Wald", boot = T, fdr_cutoff = 0.05)

where Genotype and stress only have two conditions in each. After partitioning by both factors I still have 36, 21, 124 and 78 samples in each group. However, I get the following error:

Error in differentialTest(formula = ~GENOTYPE + Stress, formula_null = ~GENOTYPE, : All models failed to converge! If you are seeing this, it is likely that your model is overspecified. This occurs when your sample size is not large enough to estimate all the parameters of your model. This is most commonly due to categorical variables that include many categories. Alternatively, double-check your values for the arguments link, phi.link, and method to makes sure that they follow the specified options. To confirm you have fixed the issue, try running a model for a single taxon with bbdml

As per previous issues I've tried reinstalling trust and optimr to no avail. I reran the example in the documentation and it seems to work just fine, so I'm not sure what's going on.

FYI, my phyloseq object is prevalence filtered to exclude taxa with a mean read count below 10.

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions