fitcnst: Constant Model Fit

Description Usage Arguments Details Value Examples

View source: R/fitcnst.R

Description

Function that fits a constant line and returns generic model outputs.

Usage

1
fitcnst(conc, resp, nofit = FALSE, ...)

Arguments

conc

Vector of concentration values NOT in log units.

resp

Vector of corresponding responses.

nofit

If nofit = TRUE, returns formatted output filled with missing values.

...

Space for parameters so fitcnst can be called similar to other fitting functions (currently unused)

Details

success = 1 for a successful fit, 0 if optimization failed, and NA if nofit = TRUE. aic, rme, and er are set to NA in case of nofit or failure. pars always equals "er".

Value

List of five elements: success, aic (Aikaike Information Criteria), rme (root mean square error), er (error parameter), pars (parameter names).

Examples

1
2
fitcnst(c(.1,1,10,100), c(1,2,0,-1))
fitcnst(c(.1,1,10,100), c(1,2,0,-1), nofit = TRUE)

tcplfit2 documentation built on July 14, 2021, 9:06 a.m.