I'm trying to put
- the table title on top
- some notes at the bottom of the table (like in the attached pdf). However I'm not sure how to do it. So far getting lots of error.
- I'd also like the table number to be automatically generated and with label, so that I can link it later in the article.
Code: Select all
Code, edit and compile here:
\documentclass[12pt, a4paper]{article}\usepackage[margin=2.54cm,top=2.54cm]{geometry}\usepackage{amsmath,amssymb,amsfonts}\usepackage{hyperref}\begin{document}Table $1$: Standard Deviations, Autocorrelations, and Correlations with Output,$\gamma = 2$\begin{center}\begin{tabular}[c]{lccccccccc}\hline& & \textbf{GHH} & & & \textbf{LQA} & &\multicolumn{3}{c}{\textbf{Discrepancy between }}\\\textbf{Variables} & & & & & & & \multicolumn{3}{c}{\textbf{GHH and LQA}}\\& 1 & 2 & 3 & 1 & 2 & 3 & 1 & 2 & 3 \\ \hline \hlineOutput, $y$ & 3.5 & 66 & 100 & 3.5 & 66 & 100 & - & - & - \\Consumption, $c$ & 2.2 & 94 & 79 & 2.2 & 94 & 100 & - & - & - \\Investment, $i$ & 11.6 & 50 & 90 & 12.3 & 49 & 89 & 6\% & -2\% & -1\% \\Labour hours, $l$ & 2.2 & 66 & 100 & 2.2 & 66 & 100 & - & - & - \\Productivity, $\frac{y}{l}$ & 1.3 & 66 & 100 & 1.3 & 66 & 100 & - & - & - \\Capital stock, $k$ & 5.6 & 99 & 52 & 5.8 & 99 & 53 & 4\% & - & 2\% \\Utilisation rate, $h$ & 6.0 & 52 & 61 & 6.2 & 52 & 61 & 3\% & - & - \\ \hline\end{tabular}\end{center}\emph{Notes:} 1: standard deviations, \%; 2: first order autocorrelations, \%; 3: correlations with output, \%. Discrepancy is calculated as LQA /\ GHH - 1. Productivity is calculated as Output \/ Hours.\end{document}
Regards,
Saleh