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

Performing post hoc Tukey test after Repeated Measures ANOVA #199

Open
reneemoerkens opened this issue Nov 15, 2023 · 1 comment
Open

Performing post hoc Tukey test after Repeated Measures ANOVA #199

reneemoerkens opened this issue Nov 15, 2023 · 1 comment

Comments

@reneemoerkens
Copy link

Hello, and thanks for the very helpful package!

I was wondering whether you could help me with the following error:
I am trying to perform a post hoc Tukey test after performing a repeated measures ANOVA:

res.aov <- aov(dissociation_viability ~ Condition + Error(cell_line/Condition), data = metadata_table) tukey.plot.test<-TukeyHSD(res.aov)

Running the repeated measures ANOVA works well and gives me this output:
image

However the Tukey test gives me the error: Error in UseMethod("TukeyHSD") : no applicable method for 'TukeyHSD' applied to an object of class "c('aovlist', 'listof')"

I tried first subsetting one of the tables from the res.aov object (which is a list) before running the Tukey test:
res.aov <- res.aov[['cell_line:Condition']]
But this still gives me this error:
Error in model.tables.aov(x, "means") : this fit does not inherit from "lm"

Maybe I am misunderstanding something, so any feedback would be very welcome.

@ricoderks
Copy link

I ran into the same problem. For some reason it is very difficult to do this in R. Maybe I'am mssing something!

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