Skip to content

Fix for wrong estimates with relabelled factors#111

Merged
clarkliming merged 2 commits into
openpharma:mainfrom
gravesti:69_factor_levels
Mar 30, 2026
Merged

Fix for wrong estimates with relabelled factors#111
clarkliming merged 2 commits into
openpharma:mainfrom
gravesti:69_factor_levels

Conversation

@gravesti
Copy link
Copy Markdown
Contributor

@gravesti gravesti commented Mar 25, 2026

The source of the bug is surprising to me, because I thought that model.matrix would properly apply the xlevels from fit to the new counterfactual data df, but it doesn't seem to...

See #69

Copy link
Copy Markdown
Collaborator

@clarkliming clarkliming left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you so much for fixing! @gravesti

@clarkliming clarkliming merged commit 9be155e into openpharma:main Mar 30, 2026
19 of 21 checks passed
@gravesti
Copy link
Copy Markdown
Contributor Author

gravesti commented Apr 9, 2026 via email

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.

2 participants