fitALKone {DATRAS}R Documentation

Fit part of the continuation ratio model using GAMs (helper function)

Description

Fit part of the continuation ratio model using GAMs (helper function)

Usage

  fitALKone(a, ages, AL, model, gamma, autoChooseK = FALSE,
    useBIC = FALSE, varCof = FALSE, maxK = 100,
    verbose = FALSE, ...)

Arguments

a

Condition on being at least this age.

ages

Vector with consecutive ages to consider, last age is plus group.

AL

Age-length data from a DATRASraw object

model

Model formula (string or formula), or a vector of strings specifying the formula for each age group.

gamma

Multiplier for AIC score (see ?gam)

autoChooseK

Automatic choice of the max. dimension for the basis used to represent the smooth term for spatial ALK. See ?s in the mgcv-package.

useBIC

Use Bayesian Information Criterion for smoothness selection instead of AIC.

varCof

Use varying coefficients model for spatial effect.

maxK

Maximum k to use. Only applies if autoChooseK is TRUE.

verbose

Print model summary?

...

Extra parameters to gam()

Value

Object of class '"gam"'


[Package DATRAS version 1.0 Index]