Learn R Programming

MortalitySmooth (version 2.3.4)

Mort2Dsmooth_checker: Check Arguments for Function Mort2Dsmooth

Description

This is an internal function of package MortalitySmooth which checks whether the arguments given in the function Mort2Dsmooth have proper lengths and suitability.

Usage

Mort2Dsmooth_checker(x, y, Z, offset, W, overdispersion, ndx, deg, pord, lambdas, df, method, coefstart, control)

Arguments

x
vector for the abscissa of data.
y
vector for the ordinate of data.
Z
matrix of counts response.
offset
matrix with an a priori known component.
W
an optional matrix of weights to be used in the fitting process.
overdispersion
logical on the accounting for overdisperion.
ndx
vector with the number of internal knots -1 for each axis.
deg
vector with the degree of the B-splines for each axis.
pord
vector with the order of differences for each axis.
lambdas
vector with smoothing parameters, possibly one for axis.
df
a number which specifies the degrees of freedom.
method
the method for controlling the amount of smoothing.
coefstart
a matrix with the eventual starting coefficients.
control
a list of control parameters.

Value

A list with checked elements to be used in Mort2Dsmooth.

Details

Internal function used in Mort2Dsmooth for checking its arguments.

See Also

Mort2Dsmooth.