Learn R Programming

tcplfit2 (version 0.1.7)

post_hit_AUC: Calculate Area Under the Curve After Hit-calling

Description

Function that calculates the area under the curve (AUC) after hit-calling.

Usage

post_hit_AUC(hit_results, return.abs = FALSE, use.log = FALSE)

Value

AUC value of the winning model (numeric)

Arguments

hit_results

output from `tcplhit2_core`.

return.abs

Logical argument, if TRUE, returns the absolute value of the AUC. Defaults to FALSE.

use.log

Logical argument, defaults to FALSE. By default, the function estimates AUC with concentrations in normal unit. If set to TRUE, will use concentration in log10-scale for estimating AUC.

Details

This function calculates the area under the curve (AUC) for the winning model selected during hit-calling. Wrapper function for `get_AUC`. Designed to take the one-row output from `tcplhit2_core`, parse the model details, and pass these values to `get_AUC` to estimate the AUC for the winning model.

See Also

get_AUC

Examples

Run this code

conc <- c(.03, .1, .3, 1, 3, 10, 30, 100)
resp <- c(0, .2, .1, .4, .7, .9, .6, 1.2)
params <- tcplfit2_core(conc, resp, .8)
output <- tcplhit2_core(params, conc, resp, 0.8, 0.5)
post_hit_AUC(output)


Run the code above in your browser using DataLab