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

60 auc estimation streamline conc scale for estimation add argument #64

Conversation

gracezhihuizhao
Copy link
Contributor

  • added a new argument to get_AUC function allowing estimating AUC with concentration in log10-scale
  • added re-parameterized functions for calculations in log scale (not exported)
  • updated documentations of functions involve AUC calculation

Things that are nice to have from the ticket #60 :

  • Warming message is included.
  • "meta-data" on which concentration-scale is used for AUC estimation in output, didn't implement. Consider there might be situation when users want to use the function on multiple curves in a loop or with mapping like apply(), in my opinion it will make things easier if the function only return a single value.

…-scale, updated the function logic and documentation, added re-parameterized functions with log10 scale x
Merge branch 'dev' of https://github.com/USEPA/CompTox-ToxCast-tcplFit2 into 60-auc-estimation-streamline-conc-scale-for-estimation-add-argument

# Conflicts:
#	R/concRespCore.R
…the plots; Updated the bi-phasic curve section after the poly2 update (more development needed).
Copy link
Collaborator

@sedavid01 sedavid01 left a comment

Choose a reason for hiding this comment

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

There are some minor requested changes. This review is in addition to further testing and review in parallel progress.

logpoly1 <- function(ps, x) {
return(ps[1]*(10^x))
}

Copy link
Collaborator

Choose a reason for hiding this comment

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

  • poly 2 should be moved up here with poly1
  • also, suggest moving the power with the poly2 - i.e. poly models followed by power followed by exponential models

R/get_AUC.R Outdated
@@ -19,6 +19,9 @@
#' @param ps Numeric vector (or list) of model parameters for the specified model in `fit_method`.
#' @param return.abs Logical argument, defaults to FALSE.
Copy link
Collaborator

Choose a reason for hiding this comment

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

@gracezhihuizhao, can you please provide a little more detail with regard to what this logical argument is meant to do? I assume this returns the absolute value of the AUC. However, current documentation is very basic and uninformative.

Copy link
Collaborator

Choose a reason for hiding this comment

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

@madison-feshuk and @brown-jason, this vignette may need to be double checked for any additional explanatory text and/or polishing before merging into 'dev' or release of the next package version.

Copy link
Collaborator

Choose a reason for hiding this comment

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

@gracezhihuizhao, please check log-scale plots (particularly Fig 1 and Fig 3). Your fix for this may be in another branch , but please check.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, the plots have the same issue you identified in PR #87. The fix in that PR will also fix the Fig 1 and Fig 3.

Copy link
Collaborator

Choose a reason for hiding this comment

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

@gracezhihuizhao, in code documentation of the re-param functions to log-scale it may be helpful to have a code comment above the function with the respective 'normal'/'raw' scale parameterized version of the function equation for easy reference.

gracezhihuizhao and others added 2 commits May 20, 2024 16:02
…ument to post_hit_AUC as well. Added normal parameterization references for log-scale re-parameterized functions.
Copy link
Collaborator

@kpaulfriedman kpaulfriedman left a comment

Choose a reason for hiding this comment

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

This looked good to me to merge to dev. I'm glad the text was updated to include poly2 as a biphasic model (at least for now!). I also really like that the default on AUC is currently FALSE since this is somewhat of a beta feature. Nice work!

@madison-feshuk madison-feshuk merged commit 35a1a25 into dev Jul 30, 2024
@gracezhihuizhao gracezhihuizhao linked an issue Jul 30, 2024 that may be closed by this pull request
4 tasks
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.

AUC estimation streamline conc scale for estimation - add argument
4 participants