Learn R Programming

MortalitySmooth (version 1.0)

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.