F_Z: Exchange Function

Description Usage Arguments Value Author(s) References Examples

View source: R/F_Z.R

Description

Given a price vector, a demand coefficient matrix and a supply matrix, this function computes the (disequilibrium) exchange results of an exchange process. There are n commodities and m agents in the exchange process.

Usage

1
F_Z(A, p, S)

Arguments

A

a n-by-m demand coefficient matrix.

p

a price n-vector.

S

a n-by-m supply matrix.

Value

F_Z returns a list containing the following components:

z

an exchange amount m-vector.

q

a sales rate n-vector.

Author(s)

LI Wu <liwu@staff.shu.edu.cn>

References

LI Wu (2019, ISBN: 9787521804225) General Equilibrium and Structural Dynamics: Perspectives of New Structural Economics. Beijing: Economic Science Press. (In Chinese)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
A <- matrix(c(
  0.05, 0.05, 0.1,
  0.1, 0, 0.1,
  0, 0.15, 0.05
), 3, 3, TRUE)
S <- diag(3)

# a market-clearing price vector
p <- c(0.6, 0.9, 1)
result <- F_Z(A, p, S)
# Each sales rate is equal to 1
result$q
# the purchase matrix
A %*% diag(result$z)

# a non-market-clearing price vector
p <- c(1, 1, 1)
result <- F_Z(A, p, S)
# Some sales rates don't equal 1
result$q
# the purchase matrix
A %*% diag(result$z)

CGE documentation built on July 8, 2020, 5:16 p.m.

Related to F_Z in CGE...