Learn R Programming

iotables (version 0.3.4)

output_coefficient_matrix_create: Create an output coefficient matrix

Description

Create an output coefficient matrix from the input flow matrix or a symmetric input-output table. If there are zero values in present, they will be changed to 0.000001 and you will get a warning. Some analytical equations cannot be solved with zero elements. You either have faulty input data, or you have to use some sort of data modification to carry on your analysis.

Usage

output_coefficient_matrix_create(io_table, type = "product",
  digits = NULL)

Arguments

io_table

An input flow matrix created with the use_table_get function which contains the 'total' column is sufficient if type=products is used. In case you use type="final_demand" you need to input a full iotable, create by the iotable_get, because you will need the final demand column.

type

The type=products (default) returns the output coefficients for products (intermediates) while the final_demand returns output coefficients for final demand. See Eurostat Manual, p495 and p507.

digits

An integer showing the precision of the technology matrix in digits. Default is NULL when no rounding is applied.

Examples

Run this code
# NOT RUN {
#You need a table that has a total column and either the total 
#intermediate use or final use
#This is usually the case with Eurostat tables, but with the Germany data
#file total must be added.

io_table <- iotable_get () 
io_table <- io_table [1:which(tolower(io_table[,1]) =="total" ), ]
output_bp <- dplyr::select ( io_table, output_bp )
io_table <- io_table [, 1:7] 
io_table$total <- rowSums(io_table[, 2:7])
io_table <- cbind (io_table, output_bp)

output_coefficient_matrix_create ( io_table = io_table, 
                                    type = 'final_demand',
                                    digits = 4 )
# }

Run the code above in your browser using DataLab