calc_A: Calculate 'Z', 'D', 'C', and 'A' matrices

Description Usage Arguments Value

View source: R/io.R

Description

Calculate Z, D, C, and A matrices

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
calc_A(
  .sutdata = NULL,
  R = "R",
  U = "U",
  V = "V",
  q = "q",
  f = "f",
  g = "g",
  Z = "Z",
  K = "K",
  C = "C",
  D = "D",
  A = "A"
)

Arguments

.sutdata

a data frame of supply-use table matrices with matrices arranged in columns.

R

resources (R) matrix or name of the column in .sutmats that contains same. Default is "R". R is an optional argument. If all of R is added to V, this argument can be left unspecified.

U

use (U) matrix or name of the column in .sutmats that contains same. Default is "U".

V

make (V) matrix or name of the column in .sutmatsthat contains same. Default is "V".

q

q vector or name of the column in .sutmats that contains same. Default is "q".

f

f vector or name of the column in .sutmats that contains same. Default is "r".

g

g vector or name of the column in .sutmats that contains same. Default is "g".

Z

name for Z matrix on output. Default is "Z". Z is calculated by U * g_hat_inv.

K

name for K matrix on output. Default is "K". K is calculated by U * f_hat_inv.

C

name for C matrix on output. Default is "C". C is calculated by transpose(V) * g_hat_inv.

D

name for D matrix on output. Default is "D". D is calculated by V * q_hat_inv.

A

name for A matrix on output. Default is "A". A is calculated by Z * D.

Value

a list or data frame containing Z, K, C, D, and A matrices


MatthewHeun/Recca documentation built on April 1, 2020, 7:15 a.m.