FitDoseResponse: Fitting Single Drug Dose-Response Model

Description Usage Arguments Details Value Author(s) References Examples

View source: R/fit_dose_response_model.R

Description

Function FitDoseResponse fits dose-response model by using drm function.

Usage

1
FitDoseResponse(data, Emin = NA, Emax = NA)

Arguments

data

A data frame. It contains two columns:

  • dose The concentration of drugs added in experiment.

  • response The response ( with different concentrations.

Emin

A numeric value or NA. the minimal effect of the drug used in the 4-parameter log-logistic function to fit the dose-response curve. If it is not NA, it is fixed the value assigned by the user. Default setting is NA.

Emax

A numeric or NA. the maximal effect of the drug used in the 4-parameter log-logistic function to fit the dose-response curve. If it is not NA, it is fixed the value assigned by the user. Default setting is NA.

Details

Pre-fitting process: 1. Change the 0 value in concentration into 10^-10 to avoide raising error when taking log. 2. If the variance of "response" values equal to 0, add 10^-10 to the last "response" value.

Model choice: First use "L.4" model to fit the raw data. If error or waring occurs, use "LL.4" model to fit log(raw data).

Value

An object of class 'drc'. It contains information of fitted model.

Author(s)

References

Seber, G. A. F. and Wild, C. J (1989) hrefhttps://onlinelibrary.wiley.com/doi/book/10.1002/0471725315Nonlinear Regression, New York: Wiley \& Sons (p. 330).

Examples

1
2
3
4
5
df <- data.frame(
  response = c(0, 29, 59, 60, 75, 90),
  dose = c(0.00, 9.7656, 39.0626, 156.25, 625, 2500)
)
model <- FitDoseResponse(df)

synergyfinder documentation built on April 4, 2021, 6 p.m.