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

Feature Request: ANOVA #120

Open
twowinkel opened this issue Sep 28, 2021 · 5 comments
Open

Feature Request: ANOVA #120

twowinkel opened this issue Sep 28, 2021 · 5 comments
Assignees

Comments

@twowinkel
Copy link

Would it be possible to have an ANOVA-like table, to see the overall significance of a main effect or interaction? Thank you so much!

## pairwise comparisons
bb = breakaway::betta( chats = data$shannon
                       , ses = data$sd
                       ,  X  = model.matrix( ~  x * ( y + z ) , data = data ) )

# anova version?
aa = aov( shannon ~ x * ( y + z )
          , data = data
          , weights = 1/sd )
summary( aa )
@adw96
Copy link
Owner

adw96 commented Sep 28, 2021

Thanks for reaching @twowinkel ! Your proposal is close, but not quite an ANOVA using the betta() model. We can definitely implement a ANOVA method, though! Thanks for the request; I'll chat about it with the development team.

@ailurophilia
Copy link
Collaborator

Update: this is in the works – stay tuned :)

@adw96
Copy link
Owner

adw96 commented Jun 16, 2022

Notes to self: @ailurophilia plans to write up notes/bullet points on analysis of deviance

@adw96
Copy link
Owner

adw96 commented Nov 24, 2022

@svteichman -- If I recall correctly, @ailurophilia made a fantastic F-test function which I believe addresses this issue. Is this function documented and tested? If so, would you mind alerting @twowinkel to it?

If we don't yet have a vignette for it, could I please task you with making one? (Not urgent -- perhaps by the end of January given all the other exciting projects that you have going on?)

@svteichman
Copy link
Collaborator

@adw96 Yes! David made an F-test function, but the F_test function is actually a helper function for the test_submodel function, which the user can interact with.

@twowinkel You should be able to use test_submodel to provide a fitted betta object (either the output of betta() or betta_random() and the submodel that you would like to test (this is where you can specify the main effect of interaction that you want to test by removing it from the full model that you used to make the betta object). You can see an example of using test_submodel in the very end of the diversity-hypothesis-testing vignette. Let me know if you have any questions!

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

No branches or pull requests

4 participants