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

comparison = "revpairwise" #325

Open
ASKurz opened this issue Aug 5, 2024 · 5 comments
Open

comparison = "revpairwise" #325

ASKurz opened this issue Aug 5, 2024 · 5 comments

Comments

@ASKurz
Copy link

ASKurz commented Aug 5, 2024

Would it be possible to add a comparison = "revpairwise" option for the compare_levels() function?

@mjskay
Copy link
Owner

mjskay commented Aug 5, 2024

Does comparison = emmeans_comparison("revpairwise") do what you're looking for?

@ASKurz
Copy link
Author

ASKurz commented Aug 5, 2024

Yep, that's the contrast I was looking for.

@mjskay
Copy link
Owner

mjskay commented Aug 5, 2024

Is that sufficient for what you need? If so I'll close. Though I suppose it couldn't hurt to have a shortcut for it either, happy to take a PR if you're interested. Relevant bit would be around here:

comparison_types = within(list(), {

@ASKurz
Copy link
Author

ASKurz commented Aug 5, 2024

It would be nice to have the "revpairwise" option available without needing to call the emmeans package, but if you have reasons to keep it as is, I won't push further.

@mjskay
Copy link
Owner

mjskay commented Aug 7, 2024

I'd be happy to have it, though I don't have much time atm so the fastest route would be if someone else made a PR ;)

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