tm_convert: Covnert a matrix to a row-wise transition matrix

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Covnert a matrix to a row-wise transition matrix

Usage

1

Arguments

matrix

a matrix tof counts

Value

matrix M divided by the sum of its rows

Examples

1
2
3
base_mat <- structure(c(44985, 740, 781, 7640), .Dim = c(2L, 2L),
.Dimnames = list(c("0", "1"), c("0", "1")))
tm_convert(base_mat)

strategicdataproject/OpenSDPsynthR documentation built on June 20, 2020, 6:17 a.m.