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

Fix contrasts issue #283 and minor other changes #284

Merged
merged 9 commits into from
Mar 3, 2022

Conversation

fweber144
Copy link
Collaborator

The main purpose of this PR is to remove any contrasts attributes of the original dataset's columns. This is intended as a quick fix for issue #283. However, as mentioned there, projpred should probably take the contrasts from the reference model into account when fitting the submodels. Until this is implemented, I have documented the current behavior.

All other changes are minor refactorings and documentation fixes (in particular, to remove the duplicated "DOI:" prefix).

If this is merged after the upcoming CRAN release, the version number for the NEWS.md change performed here needs to be adapted.

`divergence_minimizers.R` by `c()` (duplicates get filtered out by `intersect()`
anyway).
packages, so make their redefinitions only locally (to increase the burden of
such usage).
is done to avoid the warning `contrasts dropped from factor <factor_name>` when
predicting for each projected draw, e.g., for submodels fit with lm()/glm()
@AlejandroCatalina AlejandroCatalina merged commit 4b213ad into stan-dev:develop Mar 3, 2022
@fweber144 fweber144 deleted the contr_etc branch March 9, 2022 09:41
@fweber144 fweber144 mentioned this pull request Mar 31, 2022
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