def _save_results(options, module, core_results, fit_results):
logging.info("<STR_LIT>")<EOL>mpl.rcParams.update(misc.rcparams.ggplot_rc)<EOL>os.makedirs(options['<STR_LIT>'])<EOL>_write_core_tables(options, module, core_results)<EOL>if module == '<STR_LIT>':<EOL><INDENT>_write_subset_index_file(options, core_results)<EOL><DEDENT>if fit_results:<EOL><INDENT>models = options['<STR_LIT>'].replace('<STR_LIT:U+0020>','<STR_LIT>').split('<STR_LIT:;>')<EOL>for i, core_result in enumerate(core_results):<EOL><INDENT>_write_fitted_params(i, models, options, fit_results)<EOL>_write_test_statistics(i, models, options, fit_results)<EOL>_write_comparison_plot_table(i, models, options,<EOL>core_results, fit_results)<EOL><DEDENT><DEDENT>
Save results of analysis as tables and figures

Parameters
----------
options : dict
    Option names and values for analysis
module : str
    Module that contained function used to generate core_results
core_results : dataframe, array, value, list of tuples
    Results of main analysis
fit_results : list or None
    Results of comparing emp analysis to models, None if not applicable