Learn R Programming

migest (version 1.8.5)

multi_comp: Multiplicative component description of origin-destination migration flow tables

Description

Multiplicative component descriptions of *n*-dimension flow tables based on total reference coding system.

Usage

multi_comp(m)

Arguments

m

matrix or array of migration flows

Value

matrix or array 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:4]
m0 <- matrix(data = c(0, 100, 30, 70, 50, 0, 45, 5, 60, 35, 0, 40, 20, 25, 20, 0), 
             nrow = 4, ncol = 4, dimnames = list(orig = n, dest = n), byrow = TRUE)
addmargins(m0)
multi_comp(m = m0)
# }

Run the code above in your browser using DataLab