Mort2Dsmooth_checker: Check Arguments for Function Mort2Dsmooth

Description Usage Arguments Details Value Author(s) See Also

View source: R/Mort2Dsmooth_checker.R

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

1
2
3
4
5
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.

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.


MortalitySmooth documentation built on May 29, 2017, 7:11 p.m.