overlap_matrix | R Documentation |
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.
overlap_matrix(clm, clm_1st, col)
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.