Example7.2: Example 7.2 in Li (2019)

Description Usage Author(s) References Examples

View source: R/sdm_examples.R

Description

This is Example 7.2 in Li (2019),which illustrates a monetary Cobb-Douglas zero-growth corn economy.

Usage

1

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
23
24
25
26
27
28
## Another way to compute this equilibrium, i.e. treating money as tax receipt.
r <- 0.25
ge <- sdm(
  A = function(state) {
    alpha <- rbind(1, 1, 1)
    Beta <- matrix(c(
      0.5, 0.5, 0.5,
      0.5, 0.5, 0.5
    ), 2, 3, TRUE)
    tmp.A <- CD_A(alpha, Beta, state$p[1:2])
    tmp <- apply(tmp.A, 2, function(x) sum(x * state$p[1:2]))

    rbind(tmp.A, r * tmp / state$p[3])
  },
  B = diag(3),
  S0Exg = {
    tmp <- matrix(NA, 3, 3)
    tmp[2, 2] <- 100
    tmp[3, 3] <- 100
    tmp
  }
)

ge$p / ge$p[3] * r

p <- ge$p
p[3] <- p[3] / r
p / p[3]

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

Related to Example7.2 in CGE...