Learn R Programming

MortalitySmooth (version 1.0)

Mort1Dsmooth.update: Update a 1D Penalized-Poisson Iteration

Description

This is an internal function of package MortalitySmooth which update coefficients for penalized B-splines for a given smoothing parameter within the function Mort1Dsmooth.

Usage

Mort1Dsmooth.update(x, y, offset, wei, psi2, B, lambdaP, a)

Arguments

x
Vector for the abscissa of data
y
Vector of counts response
offset
Vector with an a priori known component (optional)
wei
An optional vector of weights to be used in the fitting process
psi2
An overdispersion parameter used the quasi-likelihood approach
B
B-splines basis
lambdaP
Penalty factor, included the smoothing parameter
a
Old coefficients

Value

  • A vector of updated coefficients

Details

Internal function used for updating coefficients of the B-splines in 1D Poisson penalized B-splines model.

See Also

Mort1Dsmooth.