-
Notifications
You must be signed in to change notification settings - Fork 63
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
Closes #2532 Update Forumula for Body Surface Area #2541
base: main
Are you sure you want to change the base?
Conversation
Noticed use of
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jimrothstein could me a entry in our news.md
on this update please?
switch is great - if you think it would make the code more readable lets make a new issue and discuss!! There is also an effort in all our date/time functions to make things more readable and less I would just stay focus on this minor documentation update for this PR and get this merged in. |
R/derive_advs_params.R
Outdated
# The DuBois & DuBois formula expects the value of height in meters | ||
# We need to convert from cm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment should be removed now.
NEWS.md
Outdated
- Replace use of `data("sdtm")` with `sdtm <- pharmaverse::sdtm` in templates and vignettes. (#2498) | ||
|
||
## Updates of Existing Functions | ||
|
||
- `compute_bsa(height, weight, method` - now uses improved version of DuBois-DuBois forumula for bsa (#2532) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The wording could confuse users because they may assume that the results are different now.
Either we should state that the results are still the same or we shouldn't add a NEWS entry because the change is not user-facing.
@bms63 , what do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think if no change for the user then lets suppress it from user-facing notes.
@jimrothstein lets move it to developer notes just so we remember when we updated - for posterity!
…m" to "m" But the example data is still in "cm"
The revised DuBois-DuBois forumula uses meters and not cm. The sample datasets still have cm units and I need to manually change. |
I don't think so. According to https://en.wikipedia.org/wiki/Body_surface_area#Calculation the formulas expect height in cm.
|
R/derive_advs_params.R
Outdated
#' in cm and `WEIGHT` is expected in kg: | ||
#' in m and `WEIGHT` is expected in kg: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Height is still expected in cm. Please undo this change here and below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Height is still expected in cm. Please undo this change here and below.
@bundfussr - my error! Will undo and correct (tocm
)
derive_advs_params.R units should be cm.
…dvs_params.R)
Thank you for your Pull Request! We have developed this task checklist from the Development Process Guide to help with the final steps of the process. Completing the below tasks helps to ensure our reviewers can maximize their time on your code as well as making sure the admiral codebase remains robust and consistent.
Please check off each taskbox as an acknowledgment that you completed the task or check off that it is not relevant to your Pull Request. This checklist is part of the Github Action workflows and the Pull Request will not be merged into the
main
branch until you have checked off each task.styler::style_file()
to style R and Rmd filesinst/cheatsheet/admiral_cheatsheet.pptx
and re-upload a PDF and a PNG version of it to the same folder. (The PNG version can be created by taking a screenshot of the PDF version.)devtools::document()
so all.Rd
files in theman
folder and theNAMESPACE
file in the project root are updated appropriatelyNEWS.md
under the header# admiral (development version)
if the changes pertain to a user-facing function (i.e. it has an@export
tag) or documentation aimed at users (rather than developers). A Developer Notes section is available inNEWS.md
for tracking developer-facing issues.pkgdown::build_site()
and check that all affected examples are displayed correctly and that all new functions occur on the "Reference" page.lintr::lint_package()
R CMD check
locally and address all errors and warnings -devtools::check()