Learn R Programming

iotables (version 0.3.5)

input_multipliers_create: Create input multipliers

Description

The function creates the input multipliers. See Eurostat Manual p500-501..

Usage

input_multipliers_create(direct_effects, inverse, labelled = TRUE,
  digits = NULL)

Arguments

direct_effects

A direct effects matrix created by direct_effects_create

inverse

A Leontieff-inverse created by leontieff_inverse_create.

labelled

Defaults to TRUE. If you use not labelled matrixes, i.e. both inputed matrixes are numerical only without the first key row, select FALSE.

digits

Rounding digits, defaults to NULL, in which case no rounding takes place.

Examples

Run this code
# NOT RUN {
 
de_use <- use_table_get()
L_de  <- leontieff_matrix_create( de_use )
I_de <- leontieff_inverse_create( L_de )

io_table <- iotable_get () 
#Total column should not be missing
io_table <- io_table [, 1:7] 
io_table$total <- rowSums(io_table[, 2:7])

labelled_io_table <- io_table
direct_effects_de <- direct_effects_create ( io_table ) 

multipliers <- input_multipliers_create(
      direct_effects = direct_effects_de [, -8],
      inverse = I_de, 
      labelled = TRUE)
# }

Run the code above in your browser using DataLab