为了创建模拟结果表格,我将以下 LaTeX 代码作为我的写作的一部分。我发现很难将以下内容包含在内:TY=57.48、GH=37.51、XYZ= 5.01,它们位于 n=50000 的正下方,全部位于第一列中。具体按此顺序(垂直排列):
n=50000
TY=57.48
GH=37.51
XYZ= 5.01
谢谢!
\usepackage{placeins}
\usepackage{amsmath,hyperref}
\setlength{\arrayrulewidth}{.3mm}
\setlength{\tabcolsep}{4pt}
\renewcommand{\arraystretch}{1.2}
\usepackage[T1]{fontenc}
\usepackage{subfigure}
\usepackage[top=1.5cm,bottom=2cm,right=2cm,left=1.8cm]{geometry}
\usepackage{tabularx}
\begin{document}
\begin{table}[!h]
\begin{center}
\begin{tabular}{ p{2cm} |c c c c c c c c}
\hline
\hline
& \emph{True Value}& \emph{Estimate} & \emph{ RMSE } & \emph{Bias } & \emph{ $\% $Bias } & \emph{SE } &\emph{Coverage} & \emph{ CIL } \\
\hline
%-----------------------------------------------------------------------------
\multirow{2}{*}{$n=50000$ } & $r_1= 0.033 $& $\hat{r_1}= 0.03339$ & $0.00161$ &$ 0.000060$ & $0.18146$ & $0.00162$ & $ 0.954$ & $0.00635$\\
& $r_2=0.040$ & $\hat{r_2}=0.04012$ & $ 0.00580$ &$0.000116$ & $ 0.29026$ & $0.00580 $ & $0.952$ & $0.02274$ \\
\cline{1-9}
\hline
\end{tabular}
\end{center}
\end{table}
答案1
诀窍\multirow{2}{=}{}
在于\arraystretch =2.4
。
另一方面,我认为 booktabs 规则看起来更好:
\documentclass{article}
\usepackage{multirow}
\usepackage{amsmath}
\renewcommand{\arraystretch}{2.4}
\usepackage[top=1.5cm,bottom=2cm,right=2cm,left=1.8cm]{geometry}
\usepackage{booktabs}
\begin{document}
\begin{tabular}{@{}p{2cm}@{\qquad}c c c c c c c c@{}}\toprule
& \emph{True Value}& \emph{Estimate} & \emph{ RMSE } & \emph{Bias } & \emph{ $\% $Bias } & \emph{SE } &\emph{Coverage} & \emph{ CIL } \\
\cmidrule{2-9}
\multirow{2}{=}{\parbox{2cm}{$n=50000$ $\text{TY}=57.48$ $\text{GH}=37.51$ $\text{XYZ}= 5.01$}} & $r_1= 0.033 $& $\hat{r_1}= 0.03339$ & $0.00161$ &$ 0.000060$ & $0.18146$ & $0.00162$ & $ 0.954$ & $0.00635$\\
& $r_2=0.040$ & $\hat{r_2}=0.04012$ & $ 0.00580$ &$0.000116$ & $ 0.29026$ & $0.00580 $ & $0.952$ & $0.02274$ \\
\cline{1-9}
\hline
\end{tabular}
\end{document}