Learn R Programming

tcpl (version 1.2.2)

tcplFit: Fit the data with the constant, hill, and gain-loss models

Description

tcplFit fits the constant, hill, and gain-loss models to the given data and returns some summary statistics and the fit parameters in a list.

Usage

tcplFit(logc, resp, bmad, force.fit = FALSE, ...)

Arguments

logc
Numeric, log concentration values
resp
Numeric, normalized response values
bmad
Numeric, the baseline median absolute deviation for the entire assay
force.fit
Logical, TRUE indicates to attempt fitting every concentration series
...
Any other data to be included in list output.

Value

List of summary values and fit parameters for the given data.

Details

By default, tcplFit will only attempt to fit concentration series when at least one median value is greater than 3*bmad.

See Also

tcplObjCnst, tcplObjHill, tcplObjGnls, constrOptim

Examples

Run this code
logc <- 1:10
resp <- sapply(1:10, tcplHillVal, ga = 5, tp = 50, gw = 0.5)
params <- tcplFit(logc = logc, resp = resp, bmad = 10)
plot(resp ~ logc)
tcplAddModel(pars = params, modl = "hill")
            

Run the code above in your browser using DataLab