def makeParameterTable(filename, params):
    '''
    Makes the parameter table for the paper, saving it to a tex file in the tables folder.
    Also makes two partial parameter tables for the slides.

    Parameters
    ----------

    filename : str
        Name of the file in which to save output (in the tables directory).
        Suffix .tex is automatically added.
    params :
        Object containing the parameter values.

    Returns
    -------
    None
    '''
    # Calibrated macroeconomic parameters
    macro_panel = "\multicolumn{3}{c}{\\textbf{Macroeconomic Parameters} }  \n"
    macro_panel += "\\\\ $\\kapShare$ & " + "{:.2f}".format(params.CapShare) + " & Capital's Share of Income   \n"
    macro_panel += "\\\\ $\\daleth$ & " + "{:.2f}".format(params.DeprFacAnn) + "^{1/4} & Depreciation Factor   \n"
    macro_panel += "\\\\ $\sigma_{\Theta}^{2}$ & "+ "{:.5f}".format(params.TranShkAggVar) +" & Variance Aggregate Transitory Shocks \n"
    macro_panel += "\\\\ $\sigma_{\Psi}^{2}$ & "+ "{:.5f}".format(params.PermShkAggVar) +" & Variance Aggregate Permanent Shocks \n"

    # Steady state values
    SS_panel = "\multicolumn{3}{c}{ \\textbf{Steady State of Perfect Foresight DSGE Model} } \\  \n"
    SS_panel += "\\\\ \multicolumn{3}{c}{ $(\\sigma_{\\Psi}=\\sigma_{\\Theta}=\\sigma_{\\psi}=\\sigma_{\\theta}=\wp=\\PDies=0$, $\\Phi_t = 1)$} \\  \n"
    SS_panel += "\\\\ $\\breve{K}/\\breve{K}^{\\kapShare}$ & " + "{:.1f}".format(params.KYratioSS) + " & SS Capital to Output Ratio  \n"
    SS_panel += "\\\\ $\\breve{K}$ & " + "{:.2f}".format(params.KSS) + " & SS Capital to Labor Productivity Ratio ($=12^{1/(1-\\kapShare)}$) \n"
    SS_panel += "\\\\ $\\breve{\\Wage}$ &  " + "{:.2f}".format(params.wRteSS) + " & SS Wage Rate ($=(1-\\kapShare)\\breve{K}^{\\kapShare}$) \n"
    SS_panel += "\\\\ $\\breve{\\mathsf{r}}$ & " + "{:.2f}".format(params.rFreeSS) + " & SS Interest Rate ($=\\kapShare \\breve{K}^{\\kapShare-1}$) \n"
    SS_panel += "\\\\ $\\breve{\\Rprod}$ & " + "{:.3f}".format(params.RfreeSS) + "& SS Between-Period Return Factor ($=\\daleth + \\breve{\\mathsf{r}}$) \n"

    # Calibrated preference parameters
    pref_panel = "\multicolumn{3}{c}{ \\textbf{Preference Parameters} }  \n"
    pref_panel += "\\\\ $\\rho$ & "+ "{:.0f}".format(params.CRRA) +". & Coefficient of Relative Risk Aversion \n"
    pref_panel += "\\\\ $\\beta_{SOE}$ &  " + "{:.3f}".format(params.DiscFacSOE) +" & SOE Discount Factor \n" #($=0.99 \\cdot \\PLives / (\\breve{\\mathcal{R}} \\Ex [\\pmb{\\psi}^{-\CRRA}])$)\n"
    pref_panel += "\\\\ $\\beta_{DSGE}$ &  " + "{:.3f}".format(params.DiscFacDSGE) +" & HA-DSGE Discount Factor ($=\\breve{\\Rprod}^{-1}$) \n"
    pref_panel += "\\\\ $\Pi$                    & " + "{:.2f}".format(params.UpdatePrb) +"  & Probability of Updating Expectations (if Sticky) \n"

    # Idiosyncratic shock parameters
    idio_panel = "\multicolumn{3}{c}{ \\textbf{Idiosyncratic Shock Parameters} }  \n"
    idio_panel += "\\\\ $\sigma_{\\theta}^{2}$    & " + "{:.3f}".format(params.TranShkVar) +"     & Variance Idiosyncratic Tran Shocks (=$4 \\times$ Annual) \n"
    idio_panel += "\\\\ $\sigma_{\psi}^{2}$      &" + "{:.3f}".format(params.PermShkVar) +"      & Variance Idiosyncratic Perm Shocks (=$\\frac{1}{4} \\times$ Annual) \n"
    idio_panel += "\\\\ $\wp$                    & " + "{:.3f}".format(params.UnempPrb) +"  & Probability of Unemployment Spell \n"
    idio_panel += "\\\\ $\PDies$             & " + "{:.3f}".format(params.DiePrb) +"  & Probability of Mortality \n"

    # Make full parameter table for paper
    paper_output = "\provideboolean{Slides} \setboolean{Slides}{false}  \n"

    paper_output += "\\begin{minipage}{\\textwidth}\n"
    paper_output += "  \\begin{table}\n"
    paper_output += "    \\caption{Calibration}\label{table:calibration}\n"

    paper_output += "\\begin{tabular}{cd{5}l}  \n"
    paper_output += "\\\\ \\toprule  \n"
    paper_output += macro_panel
    paper_output += "\\\\ \\midrule  \n"
    paper_output += SS_panel
    paper_output += "\\\\ \\midrule  \n"
    paper_output += pref_panel
    paper_output += "\\\\ \\midrule  \n"
    paper_output += idio_panel
    paper_output += "\\\\ \\bottomrule  \n"
    paper_output += "\end{tabular}\n"
    paper_output += "\end{table}\n"
    paper_output += "\end{minipage}\n"
    paper_output += "\ifthenelse{\\boolean{StandAlone}}{\end{document}}{}    \n"
    with open(tables_dir + filename + '.tex','w') as f:
        f.write(paper_output)
        f.close()

    # Make two partial parameter tables for the slides
    slides1_output = "\\begin{center}\label{table:calibration1}  \n"
    slides1_output += "\\begin{tabular}{cd{5}l}  \n"
    slides1_output += "\\\\ \\toprule  \n"
    slides1_output += macro_panel
    slides1_output += "\\\\ \\midrule  \n"
    slides1_output += SS_panel
    slides1_output += "\\\\ \\bottomrule  \n"
    slides1_output += "\end{tabular}  \n"
    slides1_output += "\end{center}  \n"
    with open(tables_dir + filename + '_1.tex','w') as f:
        f.write(slides1_output)
        f.close()

    slides2_output = "\\begin{center}\label{table:calibration2}  \n"
    slides2_output += "\\begin{tabular}{cd{5}l}  \n"
    slides2_output += "\\\\ \\toprule  \n"
    slides2_output += pref_panel
    slides2_output += "\\\\ \\midrule  \n"
    slides2_output += idio_panel
    slides2_output += "\\\\ \\bottomrule  \n"
    slides2_output += "\end{tabular}  \n"
    slides2_output += "\end{center}  \n"
    with open(tables_dir + filename + '_2.tex','w') as f:
        f.write(slides2_output)
        f.close()
Makes the parameter table for the paper, saving it to a tex file in the tables folder.
    Also makes two partial parameter tables for the slides.

    Parameters
    ----------

    filename : str
        Name of the file in which to save output (in the tables directory).
        Suffix .tex is automatically added.
    params :
        Object containing the parameter values.

    Returns
    -------
    None