嗨,有人能帮我在乳胶中画出这张表吗
我曾使用过此代码,但我找不到如何在 Kpss 测试列中添加多列
\begin{table}[h]
\centering
\begin{tabular}{lllllll}
\hline
\textbf{Sector}& \textbf{t-Statistic}& \textbf{Probability}&\multicolumn{3}{c}{\textbf{KPSS Test}}\\
\hline
\textbf{AGRICULTURE}& 0.31028& 0.0326 \\
\hline
\textbf{CONSTRUCTION}&-1.3716& 0.1562& \\
\hline
\textbf{ENERGY}& -2.0059& 0.0438 \\
\hline
\textbf{HOUSEHOLD}& -1.99411& 0.0450 \\
\hline
\textbf{MANUFACTURE}& -1.7018& 0.0178\\
\hline
\textbf{MINING}& -2.3856& 0.0176\\
\hline
\textbf{TOURISM}& -2.3251& 0.0206\\
\hline
\end{tabular}
\caption{Augmented DickeyFuller and KPSS Test Statistics for Transformed Indices}
\label{tab:Augmented DickeyFuller and KPSS Test Statistics for Transfor med Indices}
\end{table}
答案1
您的代码不完整。尝试以下操作:
\documentclass{article}
\usepackage[left = 2.5cm, right = 2.5cm]{geometry}
\begin{document}
\begin{table}[h]
\renewcommand{\arraystretch}{1.4}
\centering
\begin{tabular}{|l|r|r|r|r|r|r|}
\hline
&&&\multicolumn{4}{|c|}{\textbf{KPSS Test}}\\ \cline{4-7}
\textbf{Sector}& \textbf{t-Statistic}& \textbf{Probability}& LM Stat& \% 1 Level&\% 5 Level&\% 10 Level \\
\hline
\textbf{AGRICULTURE}& 0.31028& 0.0326&&&& \\
\hline
\textbf{CONSTRUCTION}&-1.3716& 0.1562&&&& \\
\hline
\textbf{ENERGY}& -2.0059& 0.0438&&&& \\
\hline
\textbf{HOUSEHOLD}& -1.99411& 0.0450&&&& \\
\hline
\textbf{MANUFACTURE}& -1.7018& 0.0178&&&&\\
\hline
\textbf{MINING}& -2.3856& 0.0176&&&&\\
\hline
\textbf{TOURISM}& -2.3251& 0.0206&&&&\\
\hline
\end{tabular}
\caption{Augmented DickeyFuller and KPSS Test Statistics for Transformed Indices}
\label{tab:Augmented DickeyFuller and KPSS Test Statistics for Transfor med Indices}
\end{table}
\end{document}