View source: R/logLogisticRegression.R
logLogisticRegression | R Documentation |
By default, logLogisticRegression uses an L-BFGS algorithm to generate the fit. However, if this fails to converge to solution, logLogisticRegression samples lattice points throughout the parameter space. It then uses the lattice point with minimal least-squares residual as an initial guess for the optimal parameters, passes this guess to drm, and re-attempts the optimization. If this still fails, logLogisticRegression uses the PatternSearch algorithm to fit a log-logistic curve to the data.
logLogisticRegression(
conc,
viability,
density = c(2, 10, 5),
step = 0.5/density,
precision = 1e-04,
lower_bounds = c(0, 0, -6),
upper_bounds = c(4, 1, 6),
scale = 0.07,
family = c("normal", "Cauchy"),
median_n = 1,
conc_as_log = FALSE,
viability_as_pct = TRUE,
trunc = TRUE,
verbose = TRUE
)
conc |
|
viability |
|
density |
|
step |
|
precision |
is a positive real number such that when the ratio of current step size to initial step size falls below it, the PatternSearch algorithm terminates. A smaller value will cause LogisticPatternSearch to take longer to complete optimization, but will produce a more accurate estimate for the fitted parameters. |
lower_bounds |
|
upper_bounds |
|
scale |
is a positive real number specifying the shape parameter of the Cauchy distribution. |
family |
|
median_n |
If the viability points being fit were medians of measurements, they are expected to follow a median of |
conc_as_log |
|
viability_as_pct |
|
trunc |
|
verbose |
|
A list containing estimates for HS, E_inf, and EC50. It is annotated with the attribute Rsquared, which is the R^2 of the fit. Note that this is calculated using the values actually used for the fit, after truncation and any transform applied. With truncation, this will be different from the R^2 compared to the variance of the raw data. This also means that if all points were truncated down or up, there is no variance in the data, and the R^2 may be NaN.
dose <- c(0.0025,0.008,0.025,0.08,0.25,0.8,2.53,8)
viability <- c(108.67,111,102.16,100.27,90,87,74,57)
computeAUC(dose, viability)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.