Ajuste de una tabla ancha de varias columnas para que se ajuste a los márgenes de la página

Ajuste de una tabla ancha de varias columnas para que se ajuste a los márgenes de la página

Creé una tabla en LaTeX usando el paquete booktabs, pero excede los márgenes de la página cuando se compila. La tabla utiliza varias columnas. Necesito mantener la legibilidad del contenido y al mismo tiempo asegurarme de que se ajuste a los márgenes de página estándar. ¿Cómo puedo ajustar la tabla o el diseño del documento para evitar el desbordamiento?"

Aquí está el MWE que replica el problema.

 \documentclass[a4paper, 12pt]{article} 
 \usepackage[margin=2cm]{geometry}
 \usepackage{booktabs} 
 \usepackage{natbib}
\usepackage{amsmath}
 \usepackage{tabulary}
 \usepackage{tabularx}
 \usepackage{varioref}
\usepackage{multirow}

 \begin{document}



\begin{table}[!ht]
\begin{center}
\caption{CIPS Panel Unit Root Tests}
 \label{tab:table_CIPS}
 \vspace{.5cm}
\begin{tabular}{lcccccc}
\toprule
\toprule
   & \multicolumn {2}{c}{Intercept} & \multicolumn {2}{c}{Intercept +\ Trend }& 
 \multicolumn {2}{c}{Intercept +\ First Difference } \\
 \cmidrule(lr){2-3}
 \cmidrule(lr){4-5}
  \cmidrule(lr){6-7}
     &\multicolumn{1}{c}{CADF_{i}(0)}&\multicolumn{1}{c}{CADF_{i}(1)}&\multicolumn{1}{c} 
  {CADF_{i}(0)}&\multicolumn{1}{c}{CADF_{i}(1)}&\multicolumn{1}{c}{CADF_{i} 
  (0)}&\multicolumn{1}{c}{CADF_{i}(1)}\\
      \cmidrule{2-5}
        ln nonresource FDI          &       -1.86**&        0.92  &      -16.23***  &       
   0.098***\\                         
 ln population               &       -1.86**&        0.92  &      -16.23***  &       
  0.098***\\                       
     ln human capital            &       -1.86**&        0.92  &      -16.23***  &       
  0.098***\\
     ln GDP per capita $(t = 1)$ &       -1.86**&        0.92  &      -16.23***  &       
    0.098***\\            
    ln GDP surrounding market potential        &       -1.86**&        0.92     &      
-16.23***  &       0.098***\\   
   Government share of GDP \times 100         &       -1.86**&        0.92     &      -16.23***  &       0.098***\\   
       ln hydrocarbon resource rents (t \times 1) & -1.86**      &        0.92     &      -16.23***  &       0.098***\\
 ln nonresource FDI (i \times 1)            & -1.86**      &        0.92     &      -16.23***  &       0.098***\\
\bottomrule 
\bottomrule
\end{tabular}%
 \end{center}
  {\footnotesize
   {H0: All series are nonstationary. The statistics are the standardized version of the $CIPS_(p)$ statistic for an unbalanced panel. The $CIPS_(p)$ statistic is the cross-section average of the cross sectionally augmented Dickey-Fuller test statistic $(CADF_{i}(p)))$. Following Pesaran (2007), extreme t values are truncated to avoid any undue influence of extreme outcomes, because t is small (10–20). *$p<0.1$, **$p<0.05$, ***$p<0.01$. For the first difference of ln population, we also reject the null if we restrict the sample to a balanced panel.}}
 \end{table}
  \end{document}

ingrese la descripción de la imagen aquí

Respuesta1

¿Qué tal si lo ponemos de lado?

He usado threeparttablepara las notas de la tabla:

\documentclass[a4paper, 12pt]{article} 
\usepackage[margin=2cm]{geometry}
\usepackage{booktabs} 
\usepackage{amsmath}
\usepackage{rotating}
\usepackage[para]{threeparttable}
\usepackage{caption}
\begin{document}
\begin{sidewaystable}\centering
\begin{threeparttable}
\caption{CIPS Panel Unit Root Tests}
 \label{tab:table_CIPS}
\begin{tabular}{lcccccc}
\toprule
\toprule
   & \multicolumn {2}{c}{Intercept} & \multicolumn {2}{c}{Intercept +\ Trend }& 
 \multicolumn {2}{c}{Intercept +\ First Difference } \\
 \cmidrule(lr){2-3}
 \cmidrule(lr){4-5}
  \cmidrule(lr){6-7}
     &\multicolumn{1}{c}{$\textrm{CADF}_{i}(0)$}&\multicolumn{1}{c}{$\textrm{CADF}_{i}(1)$}&\multicolumn{1}{c} 
  {$\textrm{CADF}_{i}(0)$}&\multicolumn{1}{c}{$\textrm{CADF}_{i}(1)$}&\multicolumn{1}{c}{$\textrm{CADF}_{i} 
  (0)$}&\multicolumn{1}{c}{$\textrm{CADF}_{i}(1)$}\\
      \cmidrule{2-7}
        ln nonresource FDI          &       -1.86**&        0.92  &      -16.23***  &       
   0.098***\\                         
 ln population               &       -1.86**&        0.92  &      -16.23***  &       
  0.098***\\                       
     ln human capital            &       -1.86**&        0.92  &      -16.23***  &       
  0.098***\\
     ln GDP per capita $(t = 1)$ &       -1.86**&        0.92  &      -16.23***  &       
    0.098***\\            
    ln GDP surrounding market potential        &       -1.86**&        0.92     &      
-16.23***  &       0.098***\\   
   Government share of GDP $\times$ 100         &       -1.86**&        0.92     &      -16.23***  &       0.098***\\   
       ln hydrocarbon resource rents (t $\times$ 1) & -1.86**      &        0.92     &      -16.23***  &       0.098***\\
 ln nonresource FDI (i $\times$ 1)            & -1.86**      &        0.92     &      -16.23***  &       0.098***\\
\bottomrule 
\bottomrule
\end{tabular}
\begin{tablenotes}
\item H0: All series are nonstationary. The statistics are the standardized version of the $CIPS_(p)$ statistic for an unbalanced panel. The $CIPS_(p)$ statistic is the cross-section average of the cross sectionally augmented Dickey-Fuller test statistic $(CADF_{i}(p)))$. Following Pesaran (2007), extreme t values are truncated to avoid any undue influence of extreme outcomes, because t is small (10–20). *$p<0.1$, **$p<0.05$, ***$p<0.01$. For the first difference of ln population, we also reject the null if we restrict the sample to a balanced panel.
\end{tablenotes}
\end{threeparttable}
\end{sidewaystable}
\end{document}

ingrese la descripción de la imagen aquí

información relacionada