Learn R Programming

biogrowth (version 1.0.8)

FitSerial: FitSerial class

Description

The FitSerial class contains growth rates estimated using the function fit_serial_dilution().

It is a subclass of list with the items:

  • fit: object returned by nls().

  • mode: fitting approach.

  • data: data used for the model fitting.

Usage

# S3 method for FitSerial
print(x, ...)

# S3 method for FitSerial coef(object, ...)

# S3 method for FitSerial summary(object, ...)

# S3 method for FitSerial predict(object, newdata = NULL, ...)

# S3 method for FitSerial residuals(object, ...)

# S3 method for FitSerial vcov(object, ...)

# S3 method for FitSerial deviance(object, ...)

# S3 method for FitSerial fitted(object, ...)

# S3 method for FitSerial logLik(object, ...)

# S3 method for FitSerial AIC(object, ..., k = 2)

# S3 method for FitSerial plot( x, y = NULL, ..., line_col = "black", line_size = 1, line_type = 1, point_col = "black", point_size = 3, point_shape = 16, label_y = NULL, label_x = NULL )

Arguments

x

The object of class FitSerial to plot.

...

ignored.

object

an instance of FitSerial

newdata

tibble (or data.frame) with the conditions for the prediction. If NULL (default), the fitting conditions.

k

penalty for the parameters (k=2 by default)

y

ignored

line_col

colour of the line

line_size

size of the line

line_type

type of the line

point_col

colour of the points

point_size

size of the points

point_shape

shape of the point

label_y

label for the y-axis. By default, NULL (default value depending on the mode)

label_x

label for the x-axis. By default, NULL (default value depending on the mode)

Methods (by generic)

  • print(FitSerial): print of the model

  • coef(FitSerial): vector of fitted model parameters.

  • summary(FitSerial): statistical summary of the fit.

  • predict(FitSerial): vector of model predictions.

  • residuals(FitSerial): vector of model residuals.

  • vcov(FitSerial): variance-covariance matrix of the model

  • deviance(FitSerial): deviance of the model.

  • fitted(FitSerial): vector of fitted values.

  • logLik(FitSerial): loglikelihood of the model

  • AIC(FitSerial): Akaike Information Criterion

  • plot(FitSerial): compares the fitted model against the data.