fit.control: Auxiliary function for controlling model fitting

Description Usage Arguments Details Value Author(s) See Also

Description

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

Usage

1
2
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.

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.

Value

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

Author(s)

Vito Muggeo

See Also

tempeff


modTempEff documentation built on May 1, 2019, 10:08 p.m.