iocoef: iocoef

View source: R/iocoef.R

iocoefR Documentation

iocoef

Description

iocoef

Usage

iocoef(adj, X, type = c("direct", "complete"))

Arguments

adj

is a square matrix of intermediate transactions in the input-output table.

X

is a column vector of gross output in the input-output table.

type

which type of consumption coefficient to calculate: "direct" or "complete".

Value

the consumption coefficient matrix.

Examples

adj <- matrix(sample(25), 5, 5)
X <- as.vector(101:105)
direct_coef <- iocoef(adj, X, type = "direct")
complete_coef <- iocoef(adj, X, type = "complete")

Carol-seven/IOcoef documentation built on April 4, 2022, 12:38 a.m.