Learn R Programming

migest (version 1.8.5)

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

Description

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

Usage

multi_comp2(m)

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

Run this code
# NOT RUN {
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_comp(m = m0)
multi_comp2(m = m0)
# }

Run the code above in your browser using DataLab