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

Error when changing contrasts on large ordered factor #35

Closed
tsostarics opened this issue Sep 17, 2024 · 1 comment
Closed

Error when changing contrasts on large ordered factor #35

tsostarics opened this issue Sep 17, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@tsostarics
Copy link
Owner

(1) throws an error, as it should, but (2) throws an error when it shouldn't because non-polynomial contrasts are being used

enlist_contrasts(data.frame(x = gl(100,1,ordered=TRUE)), x ~ contr.poly) # (1) 
enlist_contrasts(data.frame(x = gl(100,1,ordered=TRUE)), x ~ sum_code) # (2)

better error handling needs to be done with use_contrasts to handle this one, will be fixed soon.

@tsostarics tsostarics added the bug Something isn't working label Sep 17, 2024
@tsostarics
Copy link
Owner Author

Here's what the new error will look like:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant