I would like to split the table on two pages after the model VAR(2) for the Variable A,D. I tried to fix it with the syntax \begin{longtable}…\end{longtable}, but i was not able to solve this problem.
Here is the Code for it:
\begin{document}
\begin{landscape}
\begin{table}[htbp]
\centering
\caption{Add caption}
\begin{tabular}{c|clSllllll}
\toprule
\multicolumn{1}{c}{\multirow{2}[2]{*}{Variable}} & \multirow{2}[2]{*}{Model} & \multicolumn{2}{c}{\multirow{2}[2]{*}{Estimated Parameters}} & \multicolumn{6}{c}{\multirow{2}[2]{*}{Details}} \\
\multicolumn{1}{c}{} & & \multicolumn{2}{c}{} & \multicolumn{6}{c}{} \\
\midrule
& & & & & & & & & \\
\multirow{5}[0]{*}{A} & \multirow{5}[0]{*}{AR(5)} & diff At-1 & 0.052 & \multicolumn{6}{l}{\multirow{5}[0]{*}{AR(5) in diff A with lag order 5, p determined by BIC}} \\
& & diff At-2 & 0.158 & \multicolumn{6}{l}{} \\
& & diff At-3 & 0.117 & \multicolumn{6}{l}{} \\
& & diff At-4 & 0.135 & \multicolumn{6}{l}{} \\
& & diff At-5 & 0.262 & \multicolumn{6}{l}{} \\
& & & & & & & & & \\
\multirow{2}[0]{*}{A,B} & \multirow{2}[0]{*}{VAR(1)} & diff At-1 & 0.239 & \multicolumn{6}{l}{\multirow{2}[0]{*}{VAR(1) in diff A and diff B with lag order 1 determined by BIC}} \\
& & diff Bt-1 & 0.003 & \multicolumn{6}{l}{} \\
& & & & & & & & & \\
\multirow{4}[0]{*}{A,C} & \multirow{4}[0]{*}{VAR(2)} & diff At-1 & 0.140 & \multicolumn{6}{l}{\multirow{4}[0]{*}{VAR(2) in diff A and diff C with lag order 2 determined by BIC}} \\
& & diff Ct-1 & 0.005 & \multicolumn{6}{l}{} \\
& & diff At-2 & 0.280 & \multicolumn{6}{l}{} \\
& & diff C2t-2 & 0.004 & \multicolumn{6}{l}{} \\
& & & & & & & & & \\
\multirow{3}[0]{*}{A,B,C} & \multirow{3}[0]{*}{VAR(1)} & diff At-1 & 0.239 & \multicolumn{6}{l}{\multirow{3}[0]{*}{VAR(1) in diff A, diff B and diff C with lag order 1 determined by BIC}} \\
& & diff Bt-1 & 0.003 & \multicolumn{6}{l}{} \\
& & diff Ct-1 & 0.002 & \multicolumn{6}{l}{} \\
& & & & & & & & & \\
\multirow{4}[0]{*}{A,D} & \multirow{4}[0]{*}{VAR(2)} & diff At-1 & 0.167 & \multicolumn{6}{l}{\multirow{4}[0]{*}{VAR(2) in diff A and diff D with lag order 2 determined by BIC}} \\
& & diff Dt-1 & 0.041 & \multicolumn{6}{l}{} \\
& & diff At-2 & 0.276 & \multicolumn{6}{l}{} \\
& & diff Dt-2 & 0.026 & \multicolumn{6}{l}{} \\
& & & & & & & & & \\
\multirow{6}[0]{*}{A,E} & \multirow{6}[0]{*}{VAR(3)} & diff At-1 & 0.094 & \multicolumn{6}{l}{\multirow{6}[0]{*}{VAR(3) in diff A and diff E with lag order 3 determined by BIC}} \\
& & diff Et-1 & -0.009 & \multicolumn{6}{l}{} \\
& & diff At-2 & 0.246 & \multicolumn{6}{l}{} \\
& & diff Et-2 & -0.136 & \multicolumn{6}{l}{} \\
& & diff At-3 & 0.220 & \multicolumn{6}{l}{} \\
& & diff Et-3 & 0.145 & \multicolumn{6}{l}{} \\
& & & & & & & & & \\
\multirow{4}[1]{*}{A,F} & \multirow{4}[1]{*}{VAR(2)} & diff At-1 & 0.151 & \multicolumn{6}{l}{\multirow{4}[1]{*}{VAR(2) in diff A and diff F with lag oder 2 determined by BIC}} \\
& & diff Ft-1 & -0.163 & \multicolumn{6}{l}{} \\
& & diff At-2 & 0.291 & \multicolumn{6}{l}{} \\
& & diff Ft-2 & 0.082 & \multicolumn{6}{l}{} \\
\bottomrule
\end{tabular}%
\label{tab:addlabel}%
\end{table}%
\end{landscape}
\end{document}
Best Answer
Here is my suggestion using the
longtable
package. I have also removed some unnecessary columns (Why all the\multicolumn{6}
commands and a total of 10 columns if you actually just need 5?) and replaced empty rows withe the\addlinespace
command frombooktabs
. I have also removed the vertical lines as thebooktabs
rules, that you already used, are incompatible with vertical lines. I have also added an appropriatetable-format
option to theS
type column to improve the spacing there.Lastly, I personally would not use vertically centered contents, but I have not changed that in your table.
Here is also a suggestion on how you can fit your table onto portrait pages: