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

Throw an error in predict with intervals for rank-deficient models #438

Merged
merged 2 commits into from
Jun 22, 2021

Conversation

nalimilan
Copy link
Member

predict currently gives incorrect intervals when some variables have been dropped due to collinearity. Throw an error instead to
avoid misleading users, until we find a fix.

See #410 (comment).

`predict` currently gives incorrect intervals when some variables
have been dropped due to collinearity. Throw an error instead to
avoid misleading users, until we find a fix.
@nalimilan nalimilan requested a review from ararslan June 22, 2021 09:19
@codecov-commenter
Copy link

Codecov Report

Merging #438 (5b6ca88) into master (2fb36b8) will increase coverage by 0.82%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #438      +/-   ##
==========================================
+ Coverage   83.35%   84.17%   +0.82%     
==========================================
  Files           6        6              
  Lines         769      771       +2     
==========================================
+ Hits          641      649       +8     
+ Misses        128      122       -6     
Impacted Files Coverage Δ
src/lm.jl 96.69% <100.00%> (+0.05%) ⬆️
src/glmfit.jl 80.14% <0.00%> (+2.16%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2fb36b8...5b6ca88. Read the comment docs.

Copy link
Member

@ararslan ararslan left a comment

Choose a reason for hiding this comment

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

LGTM otherwise, or ignore comments if you disagree

src/lm.jl Outdated Show resolved Hide resolved
test/runtests.jl Outdated Show resolved Hide resolved
Co-authored-by: Alex Arslan <ararslan@comcast.net>
@nalimilan nalimilan merged commit f15dd68 into master Jun 22, 2021
@nalimilan nalimilan deleted the nl/predicterr branch June 22, 2021 20:23
@nalimilan
Copy link
Member Author

Thanks! I've filed #439 to release 1.4.3.

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.

3 participants