% Table generated by Excel2LaTeX from sheet 'Sheet1'
\begin{table}[htbp]
\centering
\caption{Marginal Effects of Multinomial Logit}
\begin{tabular}{rccc}
\toprule
\multicolumn{1}{l}{} & 1 & 2& 3 \\
\midrule
\multicolumn{1}{l}{A} & 0.039*** & -0.005*** & -0.021*** \\
\multicolumn{1}{l}{} & (0.011) & (0.010) & (0.009) \\
\multicolumn{1}{l}{B} & -0.033*** & 0.007*** & 0.013*** \\
\multicolumn{1}{l}{} & (0.012) & (0.011) & (0.010) \\
\multicolumn{1}{l}{C} & 0.056*** & 0.016*** & -0.045*** \\
\multicolumn{1}{l}{} & (0.005) & (0.004) & (0.007) \\
\multicolumn{1}{l}{D} & -0.013*** & -0.007*** & 0.006*** \\
\multicolumn{1}{l}{} & (0.007) & (0.006) & (0.006) \\
\multicolumn{1}{l}{E} & 0.006*** & -0.001*** & -0.023*** \\
\multicolumn{1}{l}{} & (0.003) & (0.002) & (0.002) \\
\multicolumn{1}{l}{F} & 0.010*** & -0.015*** & -0.058*** \\
\multicolumn{1}{l}{} & (0.062) & (0.058) & (0.043) \\
\multicolumn{1}{l}{G} & -0.027*** & -0.005*** & 0.029*** \\
\multicolumn{1}{l}{} & (0.024) & (0.021) & (0.018) \\
\multicolumn{1}{l}{H} & 0.029*** & 0.077*** & -0.022*** \\
\multicolumn{1}{l}{} & (0.074) & (0.068) & ..0520676 \\\hline\hline
\multicolumn{4}{c}{Standard errors in parentheses. *p $<$ 0.10, **p $<$
0.05, ***p $<$ 0.01} \\
%\bottomrule
\end{tabular}%
\label{tab:addlabel}%
\end{table}%
答案1
答案2
我会像这样设计你的表格:
为此,我在序言中提到
\usepackage{siunitx}
\usepackage{threeparttable}
对于表格使用threeparttable
环境、S
列类型,允许数字在小数点对齐,并与您的代码片段进行比较,删除所有\multicolumn{1}{...}{...}
(多余的):
\begin{table}[htbp]
\centering
\begin{threeparttable}
\caption{Marginal Effects of Multinomial Logit}
\label{tab:addlabel}
\begin{tabular}{r *{3}{S[table-format=-1.3,
input-symbols={( )},
table-space-text-post={***},
]}
}
\toprule
& {1} & {2} & {3} \\
\midrule
A & 0.039\tnote{***} & -0.005\tnote{***} & -0.021\tnote{***} \\
& (0.011) & (0.010) & (0.009) \\
B & -0.033\tnote{***} & 0.007\tnote{***} & 0.013\tnote{***} \\
& (0.012) & (0.011) & (0.010) \\
C & 0.056\tnote{***} & 0.016\tnote{***} & -0.045\tnote{***} \\
& (0.005) & (0.004) & (0.007) \\
D & -0.013\tnote{***} & -0.007\tnote{***} & 0.006\tnote{***} \\
& (0.007) & (0.006) & (0.006) \\
E & 0.006\tnote{***} & -0.001\tnote{***} & -0.023\tnote{***} \\
& (0.003) & (0.002) & (0.002) \\
F & 0.010\tnote{***} & -0.015\tnote{***} & -0.058\tnote{***} \\
& (0.062) & (0.058) & (0.043) \\
G & -0.027\tnote{***} & -0.005\tnote{***} & 0.029\tnote{***} \\
& (0.024) & (0.021) & (0.018) \\
H & 0.029\tnote{***} & 0.077\tnote{***} & -0.022\tnote{***} \\
& (0.074) & (0.068) & (0.052) \\
\midrule[0.6pt]
\multicolumn{4}{l}{Standard errors in parentheses.} \\
\end{tabular}%
\begin{tablenotes}[para]\footnotesize
\item[*] $p < 0.10$,
\item[**] $p < 0.05$,
\item[***] $p < 0.01$
\end{tablenotes}
\end{threeparttable}
\end{table}