LaTeX forum ⇒ Graphics, Figures & TablesTable in Beamer (Economic Regression)

Information and discussion about graphics, figures & tables in LaTeX documents.
BenjaminPrisse
Posts: 1
Joined: Sun Sep 15, 2019 6:22 pm

Table in Beamer (Economic Regression)

Postby BenjaminPrisse » Sun Sep 15, 2019 6:38 pm

Hello,

I need to integrate the following table in beamer. This is an economic regression. I have already search for solutions, and tried to remove everything referring to "table". But it still does not work. I would be grateful for explaining why :

\begin{table}[htbp]\centering
\def\sym#1{\ifmmode^{#1}\else\(^{#1}\)\fi}
\caption{Time for first task}
\begin{tabular}{l*{8}{c}}
\hline\hline
&\multicolumn{1}{c}{All Subjects}&\multicolumn{1}{c}{All Subjects}&\multicolumn{1}{c}{Consistent}&\multicolumn{1}{c}{Consistent}&\multicolumn{1}{c}{MPL Consistent}&\multicolumn{1}{c}{MPL Consistent}&\multicolumn{1}{c}{cMPL Consistent}&\multicolumn{1}{c}{cMPL Consistent}\\
& (1a) & (1b) & (2a) & (2b) & (3a) & (3b) & (4a) & (4b)\\
\hline
hypothetical& 16.03 & 33.08 & 36.73 & 43.14 & 72.26 & 136.4 & -16.18 & -25.14 \\
& (0.42) & (0.74) & (0.83) & (0.80) & (1.32) & (2.00) & (-0.24) & (-0.32) \\
[1em]
onetenth & 30.12 & 38.76 & 45.49 & 48.87 & 40.96 & 51.07 & 38.59 & 37.57 \\
& (0.79) & (0.94) & (1.04) & (1.04) & (0.73) & (0.88) & (0.61) & (0.53) \\
[1em]
age & & -4.344 & & -2.631 & & -3.640 & & 5.468 \\
& & (-0.86) & & (-0.47) & & (-0.63) & & (0.36) \\
[1em]
female & & 3.230 & & 30.80 & & 68.31 & & -19.22 \\
& & (0.09) & & (0.75) & & (1.37) & & (-0.30) \\
[1em]
crt\_score & & 73.64 & & 93.27 & & 54.77 & & 76.71 \\
& & (1.49) & & (1.58) & & (0.73) & & (0.87) \\
[1em]
\_cons & 385.5\sym{***}& 452.0\sym{***}& 371.1\sym{***}& 384.0\sym{**} & 341.0\sym{***}& 366.4\sym{*} & 398.1\sym{***}& 271.1 \\
& (14.15) & (3.79) & (11.32) & (2.78) & (8.55) & (2.48) & (8.04) & (0.82) \\
\hline
\(N\) & 142 & 124 & 116 & 101 & 67 & 56 & 56 & 51 \\
\(R^{2}\) & 0.0044 & 0.0391 & 0.0103 & 0.0512 & 0.0267 & 0.1470 & 0.0165 & 0.0448 \\
\hline\hline
\multicolumn{9}{l}{\footnotesize \textit{t} statistics in parentheses}\\
\multicolumn{9}{l}{\footnotesize \sym{*} \(p<0.05\), \sym{**} \(p<0.01\), \sym{***} \(p<0.001\)}\\
\end{tabular}
\end{table}

rais
Posts: 235
Joined: Sun Nov 16, 2014 8:51 pm

Postby rais » Sun Sep 15, 2019 9:30 pm

your table is simply too big to fit on a slide.
Even if you would shorten the head lines to s.th like
&\multicolumn{2}{c}{All Subjects}&\multicolumn{2}{c}{Consistent}&\multicolumn{2}{c}{MPL Consistent}&\multicolumn{2}{c}{cMPL Consistent}\\
and cut the left and right borders by declaring
\begin{tabular}{@{}l*{8}{c}@{}}, even shortening \tabcolsep to half, you'd need to put the whole tabular \tiny, to fit it on a slide. But then, you might need to supply binoculars for your audience...
Can't you use an excerpt from the table with less columns?

KR
Rainer


Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: No registered users and 5 guests