Learn R Programming

MortalitySmooth (version 2.3.4)

Mort2Dsmooth_update: Update a 2D Penalized-Poisson Iteration

Description

This is an internal function of package MortalitySmooth which update coefficients for penalized B-splines for two given smoothing parameters within the function Mort2Dsmooth.

Usage

Mort2Dsmooth_update(x, y, Z, offset, psi2, wei, Bx, By, nbx, nby, RTBx, RTBy, P, a)

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 (optional).
wei
an optional matrix of weights to be used in the fitting process.
psi2
overdispersion parameter.
Bx
B-splines basis for the x-axis.
By
B-splines basis for the y-axis.
nbx
number of B-splines for the x-axis.
nby
number of B-splines for the y-axis.
RTBx
tensors product of B-splines basis for the x-axis.
RTBy
tensors product of B-splines basis for the y-axis.
P
penalty factor.
a
coefficients (in a matrix).

Value

A matrix of updated coefficients.

Details

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

See Also

Mort2Dsmooth.