# NOT RUN {
IT17 <- matrix(c(
1.47, 6.47, 0.57, 2.51,
2.18, 76.32, 12.83, 44.20,
0.82, 19.47, 23.33, 35.61,
6.53, 13.92, 21.88, 0,
0.23, 4.05, 6.76, 0,
-0.34, 6.43, 3.40, 0,
0.13, 8.87, 10.46, 0
), 7, 4, TRUE)
product.output <- c(11.02, 135.53, 79.23)
rownames(IT17) <- c("agri", "manu", "serv", "lab", "cap", "tax", "dividend")
colnames(IT17) <- c("sector.agri", "sector.manu", "sector.serv", "sector.hh")
ge <- gemInputOutputTable_7_4(
IT = IT17,
product.output = product.output,
supply.labor = 42.33,
supply.capital = 11.04
)
#### labor supply reduction
geLSR <- gemInputOutputTable_7_4(
IT = IT17,
product.output = product.output,
supply.labor = 42.33 * 0.9,
supply.capital = 11.04
)
geLSR$z / ge$z
geLSR$p / ge$p
#### capital accumulation
geCA <- gemInputOutputTable_7_4(
IT = IT17,
product.output = product.output,
supply.labor = 42.33,
supply.capital = 11.04 * 1.1
)
geCA$z / ge$z
geCA$p / ge$p
#### technology progress
IT.TP <- IT17
IT.TP ["lab", "sector.manu"] <-
IT.TP ["lab", "sector.manu"] * 0.9
geTP <- gemInputOutputTable_7_4(
IT = IT.TP,
product.output = product.output,
supply.labor = 42.33,
supply.capital = 11.04
)
geTP$z / ge$z
geTP$p / ge$p
##
IT.TP2 <- IT.TP
IT.TP2 ["cap", "sector.manu"] <-
IT.TP2["cap", "sector.manu"] * 1.02
geTP2 <- gemInputOutputTable_7_4(
IT = IT.TP2,
product.output = product.output,
supply.labor = 42.33,
supply.capital = 11.04
)
geTP2$z / ge$z
geTP2$p / ge$p
##
IT.TP3 <- IT17
IT.TP3 ["lab", "sector.manu"] <-
IT.TP3 ["lab", "sector.manu"] * 0.9
IT.TP3 ["lab", "sector.agri"] <-
IT.TP3 ["lab", "sector.agri"] * 0.8
geTP3 <- gemInputOutputTable_7_4(
IT = IT.TP3,
product.output = product.output,
supply.labor = 42.33,
supply.capital = 11.04
)
geTP3$value.added / ge$value.added
prop.table(geTP3$value.added) - prop.table(ge$value.added)
#### demand structure change
IT.DSC <- IT17
IT.DSC["serv", "sector.hh"] <- IT.DSC ["serv", "sector.hh"] * 1.2
geDSC <- gemInputOutputTable_7_4(
IT = IT.DSC,
product.output = product.output,
supply.labor = 42.33,
supply.capital = 11.04
)
geDSC$z[1:3] / ge$z[1:3]
geDSC$p / ge$p
#### tax change
IT.TC <- IT17
IT.TC["tax", "sector.agri"] <- IT.TC["tax", "sector.agri"] * 2
geTC <- gemInputOutputTable_7_4(
IT = IT.TC,
product.output = product.output,
supply.labor = 42.33,
supply.capital = 11.04
)
geTC$z / ge$z
geTC$p / ge$p
##
IT.TC2 <- IT17
IT.TC2["tax", "sector.manu"] <- IT.TC2["tax", "sector.manu"] * 0.8
geTC2 <- gemInputOutputTable_7_4(
IT = IT.TC2,
product.output = product.output,
supply.labor = 42.33,
supply.capital = 11.04
)
geTC2$z / ge$z
geTC2$p / ge$p
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab