\documentclass{article}
\usepackage{caption}
\usepackage{subcaption}

\usepackage{booktabs} % \toprule
\usepackage{rotating}
\usepackage{canoniclayout}
\captionsetup{labelformat=empty}

\usepackage{graphicx}
\graphicspath{{../1_mc_simulations/tabfig/}{../2_empirical_application/tabfig/}}
\DeclareGraphicsExtensions{.png,.pdf}

\newcommand{\mc}[1]{\multicolumn{1}{c}{#1}}

\def\sym#1{\ifmmode^{#1}\else\(^{#1}\)\fi}

\newcommand*\InputTableMC[1]{\input{../1_mc_simulations/tabfig/#1.tex}}
\newcommand*\InputTableEM[1]{\input{../2_empirical_application/tabfig/#1.tex}}

\title{List of Tables and Figures of ``Estimation and Inference for Spatial Models with Heterogeneous Coefficients: An Application to U.S.\ House Prices''}
\author{Michele Aquaro\\Joint Research Centre, European Commission
\and Natalia Bailey\\Department of Econometrics and Business Statistics, Monash University
\and M. Hashem Pesaran\\Department of Economics, University of Southern California, \\and Trinity College, Cambridge}
\date{\today}
\begin{document}
\maketitle
\listoftables
\listoffigures

\newpage
\begin{figure}
     \caption{Figure~1}
     \begin{subfigure}{\textwidth}
          \centering
          \fbox{\includegraphics[scale=0.6]{fg_map_Wy0_Wy1}}
          \caption{}
     \end{subfigure}
     \\
     \begin{subfigure}{\textwidth}
          \centering
          \fbox{\includegraphics[scale=0.6]{fg_map_y1}}
          \caption{}
     \end{subfigure}
\end{figure}

\cleardoublepage
\begin{figure}
     \caption{Figure~2}
     \begin{subfigure}{\textwidth}
          \centering
          \fbox{\includegraphics[scale=0.6]{fg_map_pp}}
          \caption{}
     \end{subfigure}
     \\
     \begin{subfigure}{\textwidth}
          \centering
          \fbox{\includegraphics[scale=0.6]{fg_map_ic}}
          \caption{}
     \end{subfigure}
\end{figure}

\cleardoublepage
\begin{table}
     \centering
     \caption{Table~1}
     \begin{tabular}{r|*{9}{r}}
          \toprule 
          $T$ & 
          \multicolumn{2}{c}{ 25} &
          \multicolumn{2}{c}{ 50} & &
          \multicolumn{2}{c}{100} &
          \multicolumn{2}{c}{200}\\
          \cmidrule(rl){2-3}
          \cmidrule(rl){4-5}
          \cmidrule(rl){7-8}
          \cmidrule(rl){9-10}
          Parameter &
          Bias & RMSE &
          Bias & RMSE & &
          Bias & RMSE &
          Bias & RMSE \\
          \midrule
          $\psi_{i0}$ & \multicolumn{9}{l}{} \\
          \InputTableMC{in_tb_bias_rmse_Bquee_gaussian0_psi_N005}
          \midrule[0.01em]
          $\beta_{i0}$ & \multicolumn{9}{l}{} \\
          \InputTableMC{in_tb_bias_rmse_Bquee_gaussian0_beta_N005}
          \midrule
          \midrule
          $T$ &
          25 & 50 & 100 & 200 & &
          25 & 50 & 100 & 200 \\
          \cmidrule(rl){2-5}
          \cmidrule(rl){7-10}
          Parameter & 
          \multicolumn{4}{c}{size} & &
          \multicolumn{4}{c}{power} \\
          \midrule
          $\psi_{i0}$ & \multicolumn{9}{l}{} \\
          \InputTableMC{in_tb_size_powe_Bquee_gaussian0_psi_N005}
          \midrule[0.01em]
          $\beta_{i0}$ & \multicolumn{9}{l}{} \\
          \InputTableMC{in_tb_size_powe_Bquee_gaussian0_beta_N005}
          \bottomrule
     \end{tabular}
\end{table}

\cleardoublepage
\begin{table}
     \centering
     \caption{Table~2}
     \resizebox*{!}{\dimexpr\textheight-2\baselineskip\relax}{%
     \begin{tabular}{r|*{9}{r}}
          \toprule 
          $T$ & 
          \multicolumn{2}{c}{ 25} &
          \multicolumn{2}{c}{ 50} & &
          \multicolumn{2}{c}{100} &
          \multicolumn{2}{c}{200}\\
          \cmidrule(rl){2-3}
          \cmidrule(rl){4-5}
          \cmidrule(rl){7-8}
          \cmidrule(rl){9-10}
          Parameter &
          Bias & RMSE &
          Bias & RMSE & &
          Bias & RMSE &
          Bias & RMSE \\
          \midrule
          $\psi_{i0}$ & \multicolumn{9}{l}{} \\
          \InputTableMC{in_tb_bias_rmse_Bquee_gaussian0_psi_N100}
          \midrule[0.01em]
          $\beta_{i0}$ & \multicolumn{9}{l}{} \\
          \InputTableMC{in_tb_bias_rmse_Bquee_gaussian0_beta_N100}
          \midrule
          \midrule
          $T$ &
          25 & 50 & 100 & 200 & &
          25 & 50 & 100 & 200 \\
          \cmidrule(rl){2-5}
          \cmidrule(rl){7-10}
          Parameter & 
          \multicolumn{4}{c}{size} & &
          \multicolumn{4}{c}{power} \\
          \midrule
          $\psi_{i0}$ & \multicolumn{9}{l}{} \\
          \InputTableMC{in_tb_size_powe_Bquee_gaussian0_psi_N100}
          \midrule[0.01em]
          $\beta_{i0}$ & \multicolumn{9}{l}{} \\
          \InputTableMC{in_tb_size_powe_Bquee_gaussian0_beta_N100}
          \bottomrule
     \end{tabular}%
     }
\end{table}

\cleardoublepage
\begin{table}
     \centering
     \caption{Table~3}
          \begin{tabular}{clccccccc}
          \hline r & Name      & $N_{r}$ & $\hat{\psi}_{MG,r}$&  $\hat{\psi}%
          _{MG0,r}$ & $\hat{\psi}_{MG1,r}$ &  $\hat{\lambda}_{MG,r}$  & $\hat{\beta
          }^{pop}_{MG,r}$ & $\hat{\beta}^{inc}_{MG,r}$   \\
          \hline
          \InputTableEM{in_tb_hsar_MG_byregion_W075}
          \hline
     \end{tabular}
\end{table}%

\cleardoublepage
\begin{figure}
     \caption{Figure~F1}
     \begin{subfigure}{\textwidth}
          \centering
          \fbox{\includegraphics[scale=0.6]{fg_map_Wy0}}
          \caption{}
     \end{subfigure}
     \\
     \begin{subfigure}{\textwidth}
          \centering
          \fbox{\includegraphics[scale=0.6]{fg_map_Wy1}}
          \caption{}
     \end{subfigure}
\end{figure}

\cleardoublepage
\begin{figure}[p]
     \caption{Figure~F2}
     \centering
     \begin{tabular}{c|c}
          {\includegraphics[width=.5\textwidth,trim={1cm 2cm 1cm 3cm},clip=true]{fg_map_pop_dir_h0}}&
          {\includegraphics[width=.5\textwidth,trim={1cm 2cm 1cm 3cm},clip=true]{fg_map_inc_dir_h0}}\\
          {\includegraphics[width=.5\textwidth,trim={1cm 2cm 1cm 3cm},clip=true]{fg_map_pop_dir_h3}}&
          {\includegraphics[width=.5\textwidth,trim={1cm 2cm 1cm 3cm},clip=true]{fg_map_inc_dir_h3}}\\
          {\includegraphics[width=.5\textwidth,trim={1cm 2cm 1cm 3cm},clip=true]{fg_map_pop_dir_h6}}&
          {\includegraphics[width=.5\textwidth,trim={1cm 2cm 1cm 3cm},clip=true]{fg_map_inc_dir_h6}}
     \end{tabular}
\end{figure}

\cleardoublepage
\begin{figure}[p]
     \caption{Figure~F3}
     \centering
     \begin{tabular}{c|c}
          {\includegraphics[width=.5\textwidth,trim={1cm 2cm 1cm 3cm},clip=true]{fg_map_pop_csi_h0}}&
          {\includegraphics[width=.5\textwidth,trim={1cm 2cm 1cm 3cm},clip=true]{fg_map_inc_csi_h0}}\\
          {\includegraphics[width=.5\textwidth,trim={1cm 2cm 1cm 3cm},clip=true]{fg_map_pop_csi_h3}}&
          {\includegraphics[width=.5\textwidth,trim={1cm 2cm 1cm 3cm},clip=true]{fg_map_inc_csi_h3}}\\
          {\includegraphics[width=.5\textwidth,trim={1cm 2cm 1cm 3cm},clip=true]{fg_map_pop_csi_h6}}&
          {\includegraphics[width=.5\textwidth,trim={1cm 2cm 1cm 3cm},clip=true]{fg_map_inc_csi_h6}}
     \end{tabular}
\end{figure}

\cleardoublepage
\begin{figure}[p]
     \caption{Figure~F4}
     \centering
     \begin{tabular}{c|c}
          {\includegraphics[width=.5\textwidth,trim={1cm 2cm 1cm 3cm},clip=true]{fg_map_pop_cso_h0}}&
          {\includegraphics[width=.5\textwidth,trim={1cm 2cm 1cm 3cm},clip=true]{fg_map_inc_cso_h0}}\\
          {\includegraphics[width=.5\textwidth,trim={1cm 2cm 1cm 3cm},clip=true]{fg_map_pop_cso_h3}}&
          {\includegraphics[width=.5\textwidth,trim={1cm 2cm 1cm 3cm},clip=true]{fg_map_inc_cso_h3}}\\
          {\includegraphics[width=.5\textwidth,trim={1cm 2cm 1cm 3cm},clip=true]{fg_map_pop_cso_h6}}&
          {\includegraphics[width=.5\textwidth,trim={1cm 2cm 1cm 3cm},clip=true]{fg_map_inc_cso_h6}}
     \end{tabular}
\end{figure}

\cleardoublepage
\begin{table}
     \caption{Table~F1}
     \centering
     \begin{tabular}{clcccc}
          \hline$r$ & Name & $N_{r}$ & Population & Area & Density \\
          &  &  &  & (sqr miles) & (per sqr mile) \\ \hline
          \InputTableEM{./in_tb_density_by_region_N338}
          \hline
     \end{tabular}
\end{table}

\cleardoublepage
\begin{table}
     \caption{Table~F2}
     \centering
     \begin{tabular}{cl|ccc|ccc}
          \hline
          &  &  \multicolumn{6}{c}{Within-region effects} \\ \hline
          &  &  \multicolumn{3}{c|}{Direct} & \multicolumn{3}{c}{Indirect} \\
          &  &  \multicolumn{3}{c|}{(in levels)} & \multicolumn{3}{c}{(as \% of Direct)} \\ \hline
          $r$ & Name & 0 & 3 & 6 & 0 & 3 & 6 \\ \hline
          &  &  \multicolumn{6}{c}{Population} \\ \hline
          \InputTableEM{in_tb_spill_effects_by_region_dir_ind_pop}
          \hline
          &  &  \multicolumn{6}{c}{Income} \\ \hline
          \InputTableEM{in_tb_spill_effects_by_region_dir_ind_inc}
          \hline
     \end{tabular}
\end{table}

\cleardoublepage
\begin{table}
     \centering
     \caption{Table~F3}
          \begin{tabular}{clccccccc}
          \hline r & Name      & $N_{r}$ & $\hat{\psi}_{MG,r}$&  $\hat{\psi}%
          _{MG0,r}$ & $\hat{\psi}_{MG1,r}$ &  $\hat{\lambda}_{MG,r}$  & $\hat{\beta
          }^{pop}_{MG,r}$ & $\hat{\beta}^{inc}_{MG,r}$   \\
          \hline
          \InputTableEM{in_tb_hsar_MG_byregion_W000}
          \hline
     \end{tabular}
\end{table}%

\cleardoublepage
\begin{table}
     \centering
     \caption[Table~G1]%
     {Table~G1. Results in
     this table are generated with the same scripts 
     as in Table~1 
     except for $\sigma^{2}_{i0}$ which here needs to be set to
     \texttt{v\_sgmsq=(v\_chisq\_2df./8)+0.25} in
     \texttt{mc\_fixed\_coefficients.m}.}
     \begin{tabular}{r|*{9}{r}}
          \toprule 
          $T$ & 
          \multicolumn{2}{c}{ 25} &
          \multicolumn{2}{c}{ 50} & &
          \multicolumn{2}{c}{100} &
          \multicolumn{2}{c}{200}\\
          \cmidrule(rl){2-3}
          \cmidrule(rl){4-5}
          \cmidrule(rl){7-8}
          \cmidrule(rl){9-10}
          Parameter &
          Bias & RMSE &
          Bias & RMSE & &
          Bias & RMSE &
          Bias & RMSE \\
          \midrule
          $\psi_{i0}$ & \multicolumn{9}{l}{} \\
          %\InputTableMC{in_tb_bias_rmse_Bquee_gaussian0_psi_N005}
          \midrule[0.01em]
          $\beta_{i0}$ & \multicolumn{9}{l}{} \\
          %\InputTableMC{in_tb_bias_rmse_Bquee_gaussian0_beta_N005}
          \midrule
          \midrule
          $T$ &
          25 & 50 & 100 & 200 & &
          25 & 50 & 100 & 200 \\
          \cmidrule(rl){2-5}
          \cmidrule(rl){7-10}
          Parameter & 
          \multicolumn{4}{c}{size} & &
          \multicolumn{4}{c}{power} \\
          \midrule
          $\psi_{i0}$ & \multicolumn{9}{l}{} \\
          %\InputTableMC{in_tb_size_powe_Bquee_gaussian0_psi_N005}
          \midrule[0.01em]
          $\beta_{i0}$ & \multicolumn{9}{l}{} \\
          %\InputTableMC{in_tb_size_powe_Bquee_gaussian0_beta_N005}
          \bottomrule
     \end{tabular}
\end{table}

\cleardoublepage
\begin{table}
     \centering
     \caption[Table~G2]%
     {Table~G2. Results in
     this table are generated with the same scripts 
     as in Table~2 
     except for $\sigma^{2}_{i0}$ which here needs to be set to
     \texttt{v\_sgmsq=(v\_chisq\_2df./8)+0.25} in
     \texttt{mc\_fixed\_coefficients.m}.}
     %\resizebox*{!}{\dimexpr\textheight-2\baselineskip\relax}{%
     \begin{tabular}{r|*{9}{r}}
          \toprule 
          $T$ & 
          \multicolumn{2}{c}{ 25} &
          \multicolumn{2}{c}{ 50} & &
          \multicolumn{2}{c}{100} &
          \multicolumn{2}{c}{200}\\
          \cmidrule(rl){2-3}
          \cmidrule(rl){4-5}
          \cmidrule(rl){7-8}
          \cmidrule(rl){9-10}
          Parameter &
          Bias & RMSE &
          Bias & RMSE & &
          Bias & RMSE &
          Bias & RMSE \\
          \midrule
          $\psi_{i0}$ & \multicolumn{9}{l}{} \\
          %\InputTableMC{in_tb_bias_rmse_Bquee_gaussian0_psi_N100}
          \midrule[0.01em]
          $\beta_{i0}$ & \multicolumn{9}{l}{} \\
          %\InputTableMC{in_tb_bias_rmse_Bquee_gaussian0_beta_N100}
          \midrule
          \midrule
          $T$ &
          25 & 50 & 100 & 200 & &
          25 & 50 & 100 & 200 \\
          \cmidrule(rl){2-5}
          \cmidrule(rl){7-10}
          Parameter & 
          \multicolumn{4}{c}{size} & &
          \multicolumn{4}{c}{power} \\
          \midrule
          $\psi_{i0}$ & \multicolumn{9}{l}{} \\
          %\InputTableMC{in_tb_size_powe_Bquee_gaussian0_psi_N100}
          \midrule[0.01em]
          $\beta_{i0}$ & \multicolumn{9}{l}{} \\
          %\InputTableMC{in_tb_size_powe_Bquee_gaussian0_beta_N100}
          \bottomrule
     \end{tabular}%
     %}
\end{table}

\cleardoublepage
\begin{figure}[p]\centering\caption{Figure~G1}\includegraphics{fg_boxplot_Bquee_rmse_psix}\end{figure}\cleardoublepage
\begin{figure}[p]\centering\caption{Figure~G2}\includegraphics{fg_boxplot_Bquee_rmse_beta}\end{figure}\cleardoublepage

\begin{figure}[p]\centering\caption{Figure~G3}\includegraphics{fg_boxplot_size_Bquee_gaussian0_psi}\end{figure}\cleardoublepage

\begin{figure}[p]\centering\caption{Figure~G4}\includegraphics{fg_power_function_Bquee_psi_unit006}\end{figure}\cleardoublepage
\begin{figure}[p]\centering\caption{Figure~G5}\includegraphics{fg_power_function_Bquee_psi_unit002}\end{figure}\cleardoublepage
\begin{figure}[p]\centering\caption{Figure~G6}\includegraphics{fg_power_function_Bquee_psi_unit007}\end{figure}\cleardoublepage

\begin{figure}[p]\centering\caption{Figure~G7}\includegraphics{fg_boxplot_size_Bquee_gaussian0_beta}\end{figure}\cleardoublepage

\begin{figure}[p]\centering\caption{Figure~G8} \includegraphics{fg_power_function_Bquee_bet_unit014}\end{figure}\cleardoublepage
\begin{figure}[p]\centering\caption{Figure~G9} \includegraphics{fg_power_function_Bquee_bet_unit016}\end{figure}\cleardoublepage
\begin{figure}[p]\centering\caption{Figure~G10}\includegraphics{fg_power_function_Bquee_bet_unit004}\end{figure}\cleardoublepage

\cleardoublepage
\begin{sidewaystable}
     \centering
     \caption[Table~G3]%
     {Table~G3. Results in
     the upper panel (Gaussian errors) are generated with the same scripts 
     as in the lower panel
     except for the variable \texttt{gaussian} in
     \texttt{mc\_random\_coefficients.m}
     which needs to be set to 1 instead of 0.}
     \resizebox{\textwidth}{!}{
     \begin{tabular}{l*{19}{r}}
     \hline\hline$N$
     & \multicolumn{4}{c}{$~25$} &
     & \multicolumn{4}{c}{$~50$} &
     & \multicolumn{4}{c}{$~75$} &
     & \multicolumn{4}{c}{$100$} \\
     \cline{2-5}
     \cline{7-10}
     \cline{12-15}
     \cline{17-20}
     $T$
     & 25 & 50 & 100 & 200 &
     & 25 & 50 & 100 & 200 &
     & 25 & 50 & 100 & 200 &
     & 25 & 50 & 100 & 200 \\
     \hline\hline\multicolumn{20}{c}{Gaussian errors} \\
     %\multicolumn{20}{l}{Bias} \\
     %\multicolumn{20}{l}{RMSE} \\
     %\multicolumn{20}{l}{Size} \\
     \hline\multicolumn{20}{c}{non-Gaussian errors} \\
     \multicolumn{20}{l}{Bias} \\
     \InputTableMC{in_tb_Bquee_gaussian0_bias_mg_estimator}
     \multicolumn{20}{l}{RMSE} \\
     \InputTableMC{in_tb_Bquee_gaussian0_rmse_mg_estimator}
     \multicolumn{20}{l}{Size} \\
     \InputTableMC{in_tb_Bquee_gaussian0_size_mg_estimator}
     \hline\hline
     \end{tabular}
}
\end{sidewaystable}

\end{document}
