computeIC: Compute the IC values at specified percentiles

Description Usage Arguments Value Author(s) See Also Examples

Description

This function uses rootfinding with fitted curve to compute IC values.

Usage

1
2
computeIC(drFit, percent = 0.5, log.d = TRUE, interpolation = TRUE,
  stepLen = NA, lower, upper, ...)

Arguments

drFit

A drFit object as returned by drFit() function.

percent

the inhibition ratio to be searched against. A vector between 0 and 1. Corresponding response is 1-percent

log.d

whether to return log10(dose) or the raw dose. Default is set to TRUE.

interpolation

whether to use interpolation to estimate IC values. In this case, the computed IC values will be bound by the observed dosages.

stepLen

step length to construct equally spaced intervals during interpolation. Only used when interpolation=TRUE.

lower

lower bound in root search. Default is min(c(0, min(dose))) where dose is the observed dose levels from drFit@originalDat.

upper

upper bound in root search. Default is max(dose)*1e6 where dose is the observed dose levels from drFit@originalDat.

...

other optimization parameters to be passed to uniroot().

Value

A named vector giving the IC values at specified percentiles.

Author(s)

Kevin R Coombes (kcoombes@mdanderson.org), Pan Tong (nickytong@gmail.com)

See Also

NewmanTest, drOutlier, drModels, drFit

Examples

1
2
3
data(ryegrass, package='drc') # use the ryegrass data from drc package
fit.sigEmax <- drFit(drMat=ryegrass[, c(2, 1)], modelName = "sigEmax", alpha=0.01, fitCtr=FALSE)
computeIC(fit.sigEmax, percent=seq(0, 1, by=0.1), log.d=FALSE)	

nickytong/drexplorer documentation built on May 23, 2019, 5:08 p.m.