overlap_matrix: Overlap matrix

View source: R/loss.R

overlap_matrixR Documentation

Overlap matrix

Description

This function overlaps two matrices with same dimension by a binary vector.
There are two claim methods, one for one-time payment and the other for continuous payments.
Therefore, we have to combine the two matrices separately according to whether it is a one-time payment or continuous payments.

Usage

overlap_matrix(clm, clm_1st, col)

Arguments

clm

a matrix. Claim matrix

clm_1st

a matrix. Claim matrix only the first claim is 1 and the rest are 0 for each column and each row id

col

a binary vector. it is 1 if it is one-time payment, it is 0 if it is continuous payment


seokhoonj/vuw documentation built on Jan. 30, 2024, 11:36 a.m.