growth.control {QurvE} | R Documentation |
Create a grofit.control
object.
Description
A grofit.control
object is required to perform various computations on growth data stored within grodata
objects (created with read_data
or parse_data
). A grofit.control
object is created automatically as part of growth.workflow
.
Usage
growth.control(
neg.nan.act = FALSE,
clean.bootstrap = TRUE,
suppress.messages = FALSE,
fit.opt = c("a"),
t0 = 0,
tmax = NA,
min.growth = NA,
max.growth = NA,
log.x.gc = FALSE,
log.y.lin = TRUE,
log.y.spline = TRUE,
log.y.model = TRUE,
lin.h = NULL,
lin.R2 = 0.97,
lin.RSD = 0.1,
lin.dY = 0.05,
biphasic = FALSE,
interactive = FALSE,
nboot.gc = 0,
smooth.gc = 0.55,
model.type = c("logistic", "richards", "gompertz", "gompertz.exp", "huang", "baranyi"),
dr.method = c("model", "spline"),
dr.model = c("gammadr", "multi2", "LL.2", "LL.3", "LL.4", "LL.5", "W1.2", "W1.3",
"W1.4", "W2.2", "W2.3", "W2.4", "LL.3u", "LL2.2", "LL2.3", "LL2.3u", "LL2.4",
"LL2.5", "AR.2", "AR.3", "MM.2"),
dr.have.atleast = 6,
dr.parameter = c("mu.linfit", "lambda.linfit", "dY.linfit", "A.linfit", "mu.spline",
"lambda.spline", "dY.spline", "A.spline", "mu.model", "lambda.model",
"dY.orig.model", "A.orig.model"),
smooth.dr = NULL,
log.x.dr = FALSE,
log.y.dr = FALSE,
nboot.dr = 0,
growth.thresh = 1.5
)
Arguments
neg.nan.act |
(Logical) Indicates whether the program should stop when negative growth values or NA values appear ( |
clean.bootstrap |
(Logical) Determines if negative values which occur during bootstrap should be removed (TRUE) or kept (FALSE). Note: Infinite values are always removed. Default: TRUE. |
suppress.messages |
(Logical) Indicates whether messages (information about current growth curve, EC50 values etc.) should be displayed ( |
fit.opt |
(Character or character vector) Indicates whether the program should perform a linear regression ( |
t0 |
(Numeric) Minimum time value considered for linear and spline fits. |
tmax |
(Numeric) Maximum time value considered for linear and spline fits. |
min.growth |
(Numeric) Indicate whether only growth values above a certain threshold should be considered for linear regressions or spline fits. |
max.growth |
(Numeric) Indicate whether only growth values below a certain threshold should be considered for linear regressions or spline fits. |
log.x.gc |
(Logical) Indicates whether ln(x+1) should be applied to the time data for linear and spline fits. Default: |
log.y.lin |
(Logical) Indicates whether ln(y/y0) should be applied to the growth data for linear fits. Default: |
log.y.spline |
(Logical) Indicates whether ln(y/y0) should be applied to the growth data for spline fits. Default: |
log.y.model |
(Logical) Indicates whether ln(y/y0) should be applied to the growth data for model fits. Default: |
lin.h |
(Numeric) Manually define the size of the sliding window used in |
lin.R2 |
(Numeric) R2 threshold for |
lin.RSD |
(Numeric) Relative standard deviation (RSD) threshold for the calculated slope in |
lin.dY |
(Numeric) Threshold for the minimum fraction of growth increase a linear regression window should cover. Default: 0.05 (5%). |
biphasic |
(Logical) Shall |
interactive |
(Logical) Controls whether the fit of each growth curve and method is controlled manually by the user. If |
nboot.gc |
(Numeric) Number of bootstrap samples used for nonparametric growth curve fitting with |
smooth.gc |
(Numeric) Parameter describing the smoothness of the spline fit; usually (not necessary) within (0;1]. |
model.type |
(Character) Vector providing the names of the parametric models which should be fitted to the data. Default: |
dr.method |
(Character) Define the method used to perform a dose-responde analysis: smooth spline fit ( |
dr.model |
(Character) Provide a list of models from the R package 'drc' to include in the dose-response analysis (if |
dr.have.atleast |
(Numeric) Minimum number of different values for the response parameter one should have for estimating a dose response curve. Note: All fit procedures require at least six unique values. Default: |
dr.parameter |
(Character or numeric) The response parameter in the output table to be used for creating a dose response curve. See |
smooth.dr |
(Numeric) Smoothing parameter used in the spline fit by smooth.spline during dose response curve estimation. Usually (not necessesary) in (0; 1]. See |
log.x.dr |
(Logical) Indicates whether |
log.y.dr |
(Logical) Indicates whether |
nboot.dr |
(Numeric) Defines the number of bootstrap samples for EC50 estimation. Use |
growth.thresh |
(Numeric) Define a threshold for growth. Only if any growth value in a sample is greater than |
Value
Generates a list with all arguments described above as entries.
References
Matthias Kahm, Guido Hasenbrink, Hella Lichtenberg-Frate, Jost Ludwig, Maik Kschischo (2010). grofit: Fitting Biological Growth Curves with R. Journal of Statistical Software, 33(7), 1-21. DOI: 10.18637/jss.v033.i07
Examples
# default option
control_default <- growth.control()
# user defined
control_manual <- growth.control(fit.opt = c('s', 'm'),
smooth.gc = 0.5,
model.type = c('huang', 'baranyi'))