Hi,
I have a question about the effect of inverting the reference for variables, when there are only 2 values per variable.
My model is: ~ Treatment * Group + (1|Individual), with Treatment = either “Control” or “Treatment”, and Group = either “R” or “NR”
When I run Maaslin3 using this model, I get a bunch of results for each variable separately as well as for the interaction.
However, when I run the same model but changing the reference value for the “Group” variable from “NR” to “R”, I get the following:
• "Group": almost perfectly mirrored: if taxa X had a coef value of -2 with reference set as “NR”, it is now +2
• "Treatment": I get much less significant results (19, compared to 21 with reference set as “NR”), and the coefficient/p-values are different
• "Group*Treatment": also almost perfectly mirrored, except a few taxa that are at the limit of significance (p-values changed slightly)
I am a bit confused why the “Treatment” is so radically different.
For instance, some taxa are highly different (with high statistical significance) with one reference, but completely absent with the other.
I thought it would be mirrored like the other variables, or if not, then the interaction would be different as well, as the variable + interaction should sum up the effect.
Am I missing something?
How should I interpret changing the reference?
Here are both Maaslin3 code for reference:
m3_NR_ref <- maaslin3(input_data = input_maaslin,
input_metadata = metadata_maaslin,
output = "m3_NR_ref",
formula = '~ Treatment * Group + (1|Individual)',
reference = ('Treatment,Control;Group,NR’),
normalization = 'TSS',
transform = 'LOG',
augment = TRUE,
standardize = TRUE,
max_significance = 0.25,
median_comparison_abundance = TRUE,
median_comparison_prevalence = FALSE)
mR_R_ref <- maaslin3(input_data = input_maaslin,
input_metadata = metadata_maaslin,
output = "m3_R_ref",
formula = '~ Treatment * Group + (1|Individual)',
reference = (’Treatment,Control;Group,R’),
normalization = 'TSS',
transform = 'LOG',
augment = TRUE,
standardize = TRUE,
max_significance = 0.25,
median_comparison_abundance = TRUE,
median_comparison_prevalence = FALSE)
Thanks a lot for your time!