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

Use StatsAPI instead of StatsBase, define confint and vcov #231

Merged
merged 1 commit into from
Oct 8, 2023

Conversation

ararslan
Copy link
Contributor

StatsAPI provides a common namespace for packages providing statistical functionality. It supersedes StatsBase's use for this purpose.

As part of the migration to using StatsAPI, which is itself a non-functional change, I've made two functional changes in the form of deprecations. Namely, estimate_covar has been deprecated in favor of vcov and confidence_interval has been deprecated in favor of confint. While the former is a simple renaming, the latter also involves specifying the confidence level rather than the Type I error rate (1 - alpha instead of alpha). These deprecations will provide a more consistent user experience with other packages that provide statistical functionality.

@oschulz
Copy link

oschulz commented Jun 11, 2023

@pkofod this would be very nice, should reduce the load time of LsqFit.

@pkofod pkofod closed this Jun 13, 2023
@pkofod pkofod reopened this Jun 13, 2023
@codecov
Copy link

codecov bot commented Jun 26, 2023

Welcome to Codecov 🎉

Once merged to your default branch, Codecov will compare your coverage reports and display the results in this comment.

Thanks for integrating Codecov - We've got you covered ☂️

@ararslan
Copy link
Contributor Author

ararslan commented Sep 8, 2023

Bump @pkofod 🙂

@ararslan
Copy link
Contributor Author

ararslan commented Oct 4, 2023

CI failure for documentation will be fixed by #247.

StatsAPI provides a common namespace for packages providing statistical
functionality. It supersedes StatsBase's use for this purpose.

As part of the migration to using StatsAPI, which is itself
non-functional, I've made two functional changes in the form of
deprecations of custom functions in favor of their existing StatsAPI
equivalents. Namely, `estimate_covar` has been deprecated in favor of
`vcov` and `confidence_interval` has been deprecated in favor of
`confint`. While the former is a simple renaming, the latter also
involves specifying the confidence level rather than the Type I error
rate (1 - alpha instead of alpha).
@ararslan
Copy link
Contributor Author

ararslan commented Oct 6, 2023

The low diff coverage is because this touches some lines that already weren't covered by tests. The <1% change in overall coverage is noise.

@pkofod
Copy link
Member

pkofod commented Oct 8, 2023

appreciate it! Thanks

@pkofod pkofod merged commit 93736e2 into JuliaNLSolvers:master Oct 8, 2023
10 of 12 checks passed
@ararslan ararslan deleted the aa/statsapi branch October 10, 2023 15:33
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