DAtest
DAtest copied to clipboard
Posthoc for aov with predictor and covar?
Hi,
Is there a way to run one posthoc analysis that includes both predictor and covar?
I use:
filt.DA.full <- DA.aov(filt, predictor = "Group",covars = "Collection_day",allResults = T)
I tried
DA.TukeyHSD(filt.DA.full, variable = "Collection_day", covar = "Predictor")
but this just ignores the covar.
Best, Martin
Hi Martin,
The TukeyHSD is run with all variables but only the one given by the "variable" argument is in the output. So to get the posthoc test for the covar you would just write:
DA.TukeyHSD(filt.DA.full, variable = "Collection_day")
and for the predictor you would write:
DA.TukeyHSD(filt.DA.full)