curve.fit: curve.fit

Description Usage Arguments Value Examples

View source: R/dose_response_fitting.R

Description

A general model fitting function for single drug effects using drm from the drc package.

Usage

1
2
curve.fit(data, resp = "Birth_rate", conc = "CONC",
  fct = drc::LL.4(), ...)

Arguments

data

Concentration-effect dataframe.

resp

Name of the column with the response values. Default is "Birth_rate".

conc

Name of the column with the drug concentration values. Default to "CONC".

fct

nonlinear function. Currently available functions can be found in drc package (use getMeanFunctions for a full list). By default the four-parameter log-logistic model LL.4 is used. More examples include the three- and five-parameter log-logistic models LL.3, LL.5,the Weibull model W1.4, etc.

...

Additional arguments for the model fitting function. See drmfor more info.

Value

This function returns the results of the model fitting function

Examples

1
2
3
4
5
6
## Not run: 
data(AU565_dataset) 
#Fit the data with a 4 parameter log-logistic function:
curve.fit(AU565_dataset,resp="Viable.cells",conc="CONC",fct=drc::LL.4())

## End(Not run)

Michorlab/ACESO documentation built on June 4, 2021, 4:57 p.m.