tests/testthat/test-indirect_effects_create.R

nl <- netherlands_2006
input_coeff_nl <- input_coefficient_matrix_create(
 data_table  = netherlands_2006, 
 households = FALSE) 
compensation_indicator <- input_indicator_create(netherlands_2006, 'compensation_employees')
I_nl <- leontief_inverse_create(input_coeff_nl)

test_that("indirect_effects_create works", {
  expect_equal(names(indirect_effects_create(input_requirements = compensation_indicator, 
                                             inverse = I_nl))[1], "prod_na")
})

Try the iotables package in your browser

Any scripts or data that you put into this service are public.

iotables documentation built on Sept. 24, 2022, 5:05 p.m.