如何将此表放入 Latex

如何将此表放入 Latex

左边的边距非常大。我想知道如何才能最好地将其放入一个 latex 页面中。

无论如何这是我的代码:

 \begin{table}[htbp]\centering
\def\sym#1{\ifmmode^{#1}\else\(^{#1}\)\fi}
\caption{Table 1: Naive OLS regressions of consumption on hourly wholesale price}
\begin{tabular}{l*{5}{c}}
 \hline\hline
            &\multicolumn{1}{c}{Consumption}&\multicolumn{1}{c}{LogConsumption}&   \multicolumn{1}{c}{Log Consumption}&\multicolumn{1}{c}{Consumption}&\multicolumn{1}{c}{Consumption}\\
\hline
Hourly price    &    0.237\sym{***}&  0.00215\sym{***}&                    &                  &    0.500\sym{***}\\
            & (0.0333)         &(0.0000844)         &                  &                  & (0.0828)         \\
[1em]
Log hour Price  &                  &                  &    0.191\sym{***}&                  &                  \\
            &                  &                  &(0.00727)         &                  &                  \\
[1em]
Hourly price sq.&                  &                  &                  & 0.000612\sym{***}& -0.00103\sym{***}\\
            &                  &                  &                  &(0.000120)         &(0.000298)         \\
[1em]
Constant        &    213.9\sym{***}&    4.372\sym{***}&    3.727\sym{***}&    229.3\sym{***}&    200.4\sym{***}\\
            &  (3.318)         &(0.00842)         & (0.0322)         &  (1.831)         &  (5.123)         \\
\hline
Observations    &   165600         &   162290         &   161806         &   165600         &   165600         \\
Adjusted \(R^{2}\)&    0.000         &    0.004         &    0.004         &    0.000         &    0.000         \\
\hline\hline
\multicolumn{6}{l}{\footnotesize Standard errors in parentheses}\\
\multicolumn{6}{l}{\footnotesize  }\\
\multicolumn{6}{l}{\footnotesize \sym{*} \(p<0.05\), \sym{**} \(p<0.01\), \sym{***} \(p<0.001\)}\\
\end{tabular}
\end{table}

相关内容