DAtest icon indicating copy to clipboard operation
DAtest copied to clipboard

Posthoc for aov with predictor and covar?

Open MSMortensen opened this issue 1 year ago • 1 comments

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

MSMortensen avatar Nov 17 '22 15:11 MSMortensen

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)

Russel88 avatar Dec 21 '22 09:12 Russel88