Learn R Programming

modTempEff (version 1.5.2)

fit.control: Auxiliary function for controlling model fitting

Description

Auxiliary function as user interface for fitting. Typically only used when calling 'tempeff' or 'tempeff.fit'.

Usage

fit.control(tol = 1e-06, display = FALSE, it.max = 20, GLM = FALSE, maxit.inner = 3)

Arguments

tol
positive convergence tolerance.
display
logical indicating if deviance should be printed for each iteration. This argument is ignored (actually it is FALSE) when it.max=0 or when the model is fitted without the temperature effect.
it.max
integer giving the maximal number of iterations.
GLM
logical indicating if at each iteration a GLM (rather than a GAM) has to be fitted.
maxit.inner
integer giving the maximal number of inner iterations.

Value

A list with the arguments as components to be used by 'tempeff' or 'tempeff.fit'.

Details

Fitting of Constrained Distributed Lag Model is performed via iterative estimate of proper Generalized Additive (or Linear when GLM=TRUE) models. The algorithm stops when the relative increase in deviance is smaller than tol or when the maximum number of iterations it.max is attained. The maximum number of (inner) iterations to estimate the working GLM at each (outer) iteration is controlled by maxit.inner.

See Also

tempeff