dot-MicrobialGrowth.gompertz: Gompertz regression function

.MicrobialGrowth.gompertzR Documentation

Gompertz regression function

Description

Regression function for Gompertz's model

Usage

.MicrobialGrowth.gompertz(
  x,
  y,
  clip = c(-Inf, Inf),
  start = list(),
  lower = list(),
  upper = list(),
  nls.args = list(),
  callbackError = NULL
)

Arguments

x

index series or time series.

y

values or list of values to regress (should not be logged).

clip

a pair of values indicating in which interval to clip the data y. When clip is missing, default values are used.

start

a named list of starting estimates. When start is missing, default values are used.

lower

a named list of lower bounds. When lower is missing, default values are used.

upper

a named list of upper bounds. When upper is missing, default values are used.

nls.args

additional parameters to use when calling nls.

callbackError

function to call on error during regression.

Details

The default values for clip, start, lower and upper are calculated based on the given data. These default values can be known through the call member of the returned value.

The nls.args argument is a list that can contain any nls function argument except formula, algorithm, start, lower and upper which are already fixed (via a homonymous or hard-coded argument).

For the callbackError argument, prefer the stop function to block or warning to not be blocking.

Value

a MicrobialGrowth-object composed of

call

the matched call with several components.

coefficients

coefficients obtained by regression.

data

data used for regression, once the y values are clipped

f

a list of functions such as formula to retrieve the function of the model with the coefficients obtained by regression, confint to retrieve the confidence intervals, etc.

isValid

a boolean indicating whether the regression was successful or not.

message

contains the error message if the regression fails, NULL otherwise.

reg

the nls object returned by the nls function.

See Also

MicrobialGrowth, .gompertz.formula


MicrobialGrowth documentation built on April 12, 2025, 1:34 a.m.