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

predcorrect usability enhancements #42

Merged
merged 9 commits into from
Jul 30, 2023

Conversation

certara-jcraig
Copy link
Collaborator

@certara-jcraig certara-jcraig commented Jul 24, 2023

  • To deprecate and no longer require loess.ypc argument inside binless(), and automatically perform LOESS prediction correction when predcorrect() is used with binless().
  • To support binning() either before or after usage of predcorrect()
    • If binning() is called after predcorrect(), ypc will be calculated inside the binning() function
  • To update vignette with usage details around predcorrect() and binning() / binless().
  • To update/add unit tests

This PR resolves fix #43

To maintain backward compatibility, users can still supply predcorrect() before a subsequent call to binless(), but they now receive a warning.

However if predcorrect() is used before binning(), they will still receive warning from predcorrect(), but will also receive additional error if they then attempt to use binning().
@codecov-commenter
Copy link

codecov-commenter commented Jul 27, 2023

Codecov Report

Merging #42 (4f77977) into master (8c7ed9c) will increase coverage by 3.34%.
Report is 10 commits behind head on master.
The diff coverage is 84.61%.

❗ Current head 4f77977 differs from pull request most recent head 1fa5532. Consider uploading reports for the commit 1fa5532 to get more accurate results

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@            Coverage Diff             @@
##           master      #42      +/-   ##
==========================================
+ Coverage   80.20%   83.55%   +3.34%     
==========================================
  Files           4        4              
  Lines        1051     1064      +13     
==========================================
+ Hits          843      889      +46     
+ Misses        208      175      -33     
Files Changed Coverage Δ
R/vpcstats.R 77.09% <80.00%> (+2.83%) ⬆️
R/binless.R 91.44% <100.00%> (+6.72%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@certara-jcraig certara-jcraig marked this pull request as ready for review July 28, 2023 19:48
@certara-jcraig certara-jcraig merged commit 94bd20f into master Jul 30, 2023
4 checks passed
@certara-jcraig certara-jcraig deleted the predcorrect_usability_enhancements branch July 30, 2023 14:39
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.

predcorrect() call ordering
2 participants