Usage
logLogisticRegression(conc, viability, density = c(2, 10, 2), step = 0.5/density, precision = 0.05, lower_bounds = c(0, 0, -6), upper_bounds = c(4, 1, 6), scale = 0.07, Cauchy_flag = FALSE, conc_as_log = FALSE, viability_as_pct = TRUE, trunc = TRUE, verbose = FALSE)
Arguments
conc
[vector] is a vector of drug concentrations.
viability
[vector] is a vector whose entries are the viability values observed in the presence of the
drug concentrations whose logarithms are in the corresponding entries of the log_conc, where viability 0
indicates that all cells died, and viability 1 indicates that the drug had no effect on the cells.
density
[vector] is a vector of length 3 whose components are the numbers of lattice points per unit
length along the HS-, E_inf-, and base-10 logarithm of the EC50-dimensions of the parameter space, respectively.
step
[vector] is a vector of length 3 whose entries are the initial step sizes in the HS, E_inf, and
base-10 logarithm of the EC50 dimensions, respectively, for the PatternSearch algorithm.
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
[vector] is a vector of length 3 whose entries are the lower bounds on the HS, E_inf,
and base-10 logarithm of the EC50 parameters, respectively.
upper_bounds
[vector] is a vector of length 3 whose entries are the upper bounds on the HS, E_inf,
and base-10 logarithm of the EC50 parameters, respectively.
scale
is a positive real number specifying the shape parameter of the Cauchy distribution.
Cauchy_flag
[logical], if true, uses MLE under an assumption of Cauchy-distributed errors
instead of sum-of-squared-residuals as the objective function for assessing goodness-of-fit of
dose-response curves to the data.
conc_as_log
[logical], if true, assumes that log10-concentration data has been given rather than concentration data,
and that log10(EC50) should be returned instead of EC50.
viability_as_pct
[logical], if false, assumes that viability is given as a decimal rather
than a percentage, and that E_inf should be returned as a decimal rather than a percentage.
trunc
[logical], if true, causes viability data to be truncated to lie between 0 and 1 before
curve-fitting is performed.
verbose
[logical], if true, causes warnings thrown by the function to be printed.