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

Do not count literal factors toward degree (fixing sorting of e.g. global intercept). #156

Merged
merged 1 commit into from
Sep 25, 2023

Conversation

matthewwardrop
Copy link
Owner

Currently the intercept is considered to be of the same degree as any other single term. This patch causes literal values to not be counted toward a term's degree, which restores the expected behaviour of sorting global intercepts first when ordering of terms is enabled in a formula.

Fixes: #148

@matthewwardrop matthewwardrop merged commit f1dbd9c into main Sep 25, 2023
5 checks passed
@matthewwardrop matthewwardrop deleted the fix_intercept_ordering branch September 25, 2023 23:14
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

Successfully merging this pull request may close these issues.

Intercept is not added after being removed
1 participant