multi_comp2: Multiplicative component descriptions of origin-destination...

Description Usage Arguments Value Examples

View source: R/multi_comp2.R

Description

Multiplicative component descriptions of origin-destination flow tables based on total reference coding system.

Usage

1

Arguments

m

matrix of migration flows

Value

matrix of multiplicative components of 'm'. When output is an array the total for each table of origin-destination flows is used.

Examples

1
2
3
4
5
n <- LETTERS[1:2]
m0 <- array(c(5, 1, 2, 7, 4, 2, 5, 9), dim = c(2, 2, 2),
            dimnames = list(orig = n, dest = n, type = c("ILL", "HEALTHY")))
addmargins(m0)
multi_comp2(m = m0)

migest documentation built on July 25, 2021, 9:07 a.m.