Mort2Dsmooth_update: Update a 2D Penalized-Poisson Iteration

Description Usage Arguments Details Value Author(s) See Also

View source: R/Mort2Dsmooth_update.R

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

1
2
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).

Details

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

Value

A matrix of updated coefficients.

Author(s)

Carlo G Camarda

See Also

Mort2Dsmooth.


MortalitySmooth documentation built on May 29, 2017, 7:11 p.m.