R/MortSmooth_BcoefB.R

MortSmooth_BcoefB <-
function(X1, X2, mat){
  ## Input:
  ## X1: first marginal matrix
  ## X2: second marginal matrix
  ## mat: matrix to be multiplied
  ## Output:
  ## BcoefB: a matrix that multiplies X1 by mat
  ##         and the transpose of X2
    BcoefB <- X1%*%mat%*%t(X2)
    return(BcoefB)
}

Try the MortalitySmooth package in your browser

Any scripts or data that you put into this service are public.

MortalitySmooth documentation built on May 2, 2019, 6:07 a.m.