dot-new.MicrobialGrowth.core: MicrobialGrowth object

.new.MicrobialGrowth.coreR Documentation

MicrobialGrowth object

Description

Provide the skeleton of the MicrobialGrowth object. Must be completed for each model.

Usage

.new.MicrobialGrowth.core(...)

Arguments

...

further arguments passed to or from other methods.

Details

the three dots ... are passed to new.env function.

Value

a MicrobialGrowth object skeleton.

Examples

# First, create the skeleton.
model.object = .new.MicrobialGrowth.core()

# Then complete with data, functions, etc.
model.object$data$x = c(1,2,3)
model.object$data$y = c(1,2,3)
model.object$coefficients = list(N0 = 0, Nmax=0, mu=0, lambda=0)
model.object$f$formula = function(x){ return(x) }
model.object$f$confint.lower = function(x){ return(x - 1) }
model.object$f$confint.upper = function(x){ return(x + 1) }

# Specialize the object by adding a class name at first position.
class(model.object) = c("specialized.model", class(model.object))

# You can print, plot, etc., with the generic functions of MicrobialGrowth.
print(model.object)
##MicrobialGrowth, model specialized.model:
##    N0   Nmax     mu lambda
##     0      0      0      0
plot(model.object)

# Don't forget to change `isValid` to TRUE to confirm the success of the regression.
model.object$isValid = TRUE # Not a good idea here, since we have no `reg` value.

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