Description Usage Arguments Details Value Examples
Fit a dose response curve using the Levenberg-Marquardt Nonlinear Least-Squares squares
algorithm from the minpack.lm package. Estimated pIC50 values can be extracted from
the fit using the nls_extract
function.
1 |
df |
A data frame with column names resp, conc and cell_id. |
NOTE: sometimes the fit will fail, in which case null is returned
an object of class 'nls' representing the nonlinear least squares model fit.
1 2 3 4 5 6 | data(drc_data_small)
cl1_data <- dplyr::filter(drc_data_small, cell_id==1)
fit <- nls_fit(cl1_data)
fit
broom::tidy(fit) #on log-normal scale
nls_extract(fit) #convenience function converts scales automatically
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.