Learn R Programming

MortalitySmooth (version 2.3.4)

MortSmooth_BcoefB: Multiply a matrix (from a kronecker product) by a matrix

Description

This is an internal function of package MortalitySmooth which compute the linear predictor and the RHS of the IWLS algorithm for 2D penalized B-splines within the function Mort2Dsmooth.

Usage

MortSmooth_BcoefB(X1, X2, mat)

Arguments

X1
first marginal matrix.
X2
second marginal matrix.
mat
matrix to be multiplied.

Value

A matrix that multiplies X1 by mat and the transpose of X2.

Details

Internal function used for computing elements within the Mort2Dsmooth function.

See Also

Mort2Dsmooth, Mort2Dsmooth_estimate.