Mort2Dsmooth.update {MortalitySmooth} | R Documentation |
This is an internal function of package MortalitySmooth
which
update coefficients for penalized B-splines for two given smoothing
parameters within the function Mort2Dsmooth
.
Mort2Dsmooth.update(x, y, Z, offset, psi2, wei, Bx, By, nbx, nby, RTBx, RTBy, P, a)
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). |
Internal function used for updating a matrix coefficients of the B-splines in 2D Poisson penalized B-splines model.
A matrix of updated coefficients.
Carlo G Camarda