Learn R Programming

MortalitySmooth (version 2.3.4)

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.