R/20-maxControl.R

Defines functions maxControl.default

### Default constructor of MaxControl object:
### take a list of parameters and overwrite the default values
maxControl.default <- function(...) {
   result <- new("MaxControl")
   result <- addControlDddot(result, ...)
   return(result)
}

### Standard method for any arguments
setGeneric("maxControl",
           function(x, ...) standardGeneric("maxControl")
           )

### Method for 'maxim' objects: fetch the stored MaxControl
setMethod("maxControl", "maxim", function(x, ...) x$control)

### Method for missing arguments: just default values
setMethod("maxControl", "missing", maxControl.default)

Try the maxLik package in your browser

Any scripts or data that you put into this service are public.

maxLik documentation built on May 29, 2024, 2:32 a.m.