utility_modules¶
Subpackages¶
Submodules¶
utility_modules.av_module¶
utility_modules.calibrate_exante_latents¶
utility_modules.check_mcaid_subsidy¶
utility_modules.checksum¶
utility_modules.firm_calibration¶
SETS THE FIRM LATENT VARIABLES TO MAINTAIN THE EX-ANTE FIRM STATE. THE LATENT VALUE GIVES CHOICE 0 THE LOWEST COST STATE BY THE AMOUNT OF maintain_offer_delta, maintain_nonoffer_delta, aintain_offerPT_delta
utility_modules.function_dict¶
utility_modules.get_parameters¶
utility_modules.import_zip¶
utility_modules.input¶
utility_modules.insurance_choice¶
utility_modules.math_functions¶
-
utility_modules.math_functions.
expand_grid
(*args, **kwargs)[source]¶ functionally equivlant as R expand.grid fucntion http://stackoverflow.com/questions/12130883/r-expand-grid-function-in-python
utility_modules.multi_merge¶
-
utility_modules.multi_merge.
multi_merge
(x, y, diff, common, keep_cols=False, cols=None, ncols=None)[source]¶ x and y: two pandas data frames to merge diff: the columns that change common: the column that to be preserved keep_cols: controls if previous cols are dropped (default = False) cols: specific cols to use in x (default uses all cols in x) ncols: base cols to use; must be in same order and length as cols
utility_modules.output¶
-
class
utility_modules.output.
Output
(out_path, git_info, general_dict, params_dict, cal_levers_dict, policy_levers_dict, system_dict, is_regional)[source]¶ Bases:
object
-
initialize_raw_data
(raw_data)[source]¶ - Available Data from CalSim.py (self refers to CalSim):
‘perm_ind_choices’ : self.perm_ind_choices, ‘long_output’ : long_output, ‘long_calib_table’ : output_calib, ‘firm_choices_all’ : self.firm_choices_all, ‘Hieu’ : self.Hieu.get_hieu_table(), ‘firm_table’ : self.Firm, ‘fam_table’ : self.Family, ‘worker_table’ : self.Worker, ‘esi_table’ : self.Esi, ‘exp_table’ : self.Expenditures, ‘weights’ : (self.person_count, self.weight_total), ‘dynamic_version’ : self.dynamic_version, ‘dynamic_exchange_statewide_premiums’ : self.statewide_premiums, ‘dynamic_exchange_regional_premiums’ : self.regional_premiums, ‘hieu_table_paired_down’ : self.hieu_table_paired_down, ‘dropped_firms’ : self.dropped_firms, ‘dropped_PT_firms’ : self.dropped_PT_firms, ‘calibrateRun’ : self.calibrateRun, ‘calibrate_ex_ante_latents’ : self.calibrate_ex_ante_latents, ‘Latent_vars’ : self.Latent_vars
-
initiate_out_table
(table_type, table_name, table, index=False)[source]¶ - effect:
adds table to the output list
- arguments:
- table_type - an integer as follows:
0 option is ‘other’, 1 option is ‘individual_data’, 2 option is ‘tables’, 3 option is ‘aggregate_results’
table_name - desired name of the table table - the dataframe itself
-