View source: R/fit_dose_response_model.R
| FitDoseResponse | R Documentation |
Function FitDoseResponse fits dose-response model by using
drm function.
FitDoseResponse(data, Emin = NA, Emax = NA)
data |
A data frame. It contains two columns:
|
Emin |
A numeric value or |
Emax |
A numeric or |
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).
An object of class 'drc'. It contains information of fitted model.
Shuyu Zheng shuyu.zheng@helsinki.fi
Jing Tang jing.tang@helsinki.fi
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).
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.