Output-Consumption Bridge

Output-Consumption Bridge#

input_output.py modules

ogzaf.input_output#

ogzaf.input_output.get_alpha_c(sam=SAM, cons_dict=CONS_DICT)[source]#

Calibrate the alpha_c vector, showing the shares of household expenditures for each consumption category

Parameters:
  • sam (pd.DataFrame) – SAM file

  • cons_dict (dict) – Dictionary of consumption categories

Returns:

Dictionary of shares of household expenditures

Return type:

alpha_c (dict)

ogzaf.input_output.get_io_matrix(sam=SAM, cons_dict=CONS_DICT, prod_dict=PROD_DICT)[source]#

Calibrate the io_matrix array. This array relates the share of each production category in each consumption category

Parameters:
  • sam (pd.DataFrame) – SAM file

  • cons_dict (dict) – Dictionary of consumption categories

  • prod_dict (dict) – Dictionary of production categories

Returns:

Dataframe of io_matrix

Return type:

io_df (pd.DataFrame)