Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Posthoc for aov with predictor and covar? #22

Open
MSMortensen opened this issue Nov 17, 2022 · 1 comment
Open

Posthoc for aov with predictor and covar? #22

MSMortensen opened this issue Nov 17, 2022 · 1 comment

Comments

@MSMortensen
Copy link

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

@Russel88
Copy link
Owner

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants