FLModel {FLCore} | R Documentation

## Class FLModel for statistical models

### Description

The FLModel class provides a virtual class that developers of various statistical models can use to implement classes that allow those models to be tested, fitted and presented.

Slots in this class attempt to map all the usual outputs for a modelling exercise, together with the standard inputs. Input data is stored in slots created by each of those classes based on FLModel.See, for example `FLSR-class` for a class used for stock-recruitment models.

Various fitting algorithms, similar to those present in the basic R packages are currently available for FLModel, including `fmle`, `nls-FLCore` and `glm`.

### Slots

name
  Name of the object. `character`.
desc
  Description of the object. `character`.
range
  Range. `numeric`.
fitted
  Estimated values for rec. `FLQuant`.
residuals
  Residuals obtained from the model fit. `FLQuant`.
model
  Model formula. `formula`.
grad
  Function returning the gradient of the model. `function`.
logl
  Log-likelihood function. `function`.
initial
  Function returning initial parameter values for the optimizer. `function`.
params
  Estimated parameter values. `FLPar`.
logLik
  Value of the log-likelihood. `logLik`.
vcov
  Variance-covariance matrix. `array`.
details
  extra information on the model fit procedure. `list`.

### Extends

FLComp

### Methods

AIC(stats) :
  Describe method
  `signature(object=FLModel,k=numeric)`
AIC(stats) :
  Describe method
  `signature(object=FLModel,k=missing)`
BIC(stats4) :
  Describe method
  `signature(object=missing)`
fmle(FLCore) :
  Describe method
  `signature(object=missing,start=missing)`
nls(stats) :
  Describe method
  `signature(formula=FLModel,data=missing,start=missing,control=missing,algorithm=missing,trace=missing,subset=missing,weights=missing,na.action=missing,model=missing,lower=missing,upper=missing)`

### Author(s)

The FLR Team

### See Also

AIC, BIC, fmle, nls, FLComp

[Package FLCore version 2.2 Index]