post_hit_AUC: Calculate Area Under the Curve After Hit-calling

View source: R/post_hit_AUC.R

post_hit_AUCR Documentation

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)

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.

Value

AUC value of the winning model (numeric)

See Also

get_AUC

Examples


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)



tcplfit2 documentation built on Sept. 24, 2024, 1:07 a.m.