Learn R Programming

MortalitySmooth (version 2.3.4)

Mort1Dsmooth_checker: Check Arguments for Function Mort1Dsmooth

Description

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

Usage

Mort1Dsmooth_checker(x, y, offset, w, overdispersion, ndx, deg, pord, lambda, df, method, coefstart, control)

Arguments

x
values of the predictor variable.
y
set of counts response variable values.
offset
a vector with the offset.
w
an optional vector of weights to be used in the fitting process.
overdispersion
logical on the accounting for overdisperion.
ndx
number of internal knots -1.
deg
degree of the B-splines.
pord
order of differences.
lambda
smoothing parameter.
df
a number which specifies the degrees of freedom.
method
the method for controlling the amount of smoothing.
coefstart
a vector with the eventual starting coefficients.
control
a list of control parameters.

Value

A list with checked elements to be used in Mort1Dsmooth

Details

Internal function used in Mort1Dsmooth for checking its arguments.

See Also

Mort1Dsmooth