Mort2Dsmooth.checker {MortalitySmooth}R Documentation

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, 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.
control A list of control parameters.

Details

Internal function used in Mort2Dsmooth for checking its arguments.

Value

A list with checked elements to be used in Mort2Dsmooth

Author(s)

Carlo G Camarda

See Also

Mort2Dsmooth.


[Package MortalitySmooth version 1.0 Index]