MaAsLin2 and model.matrix variables

Hi @Evelyn

Thanks for reaching out. Based on my best information about your post it seems you set up your interaction effectively as discussed in this post here: MaAslin2 Interactions with Gender and Trial - #2 by andrewGhazi

As for why Maaslin is indicating coefs that don’t seem to match up with your data. Have you tried plotting the data out by the interaction variable itself? (i.e. plotting male+treatmentA vs. male+treatmentB, female+treatmentA, female+treatmentB). This should give you an idea of whether or not the results make sense.

Jacob Nearing