테이블 열에 더 많은 항목 추가

테이블 열에 더 많은 항목 추가

시뮬레이션 결과에 대한 테이블을 만들기 위해 글쓰기의 일부로 다음 LaTeX 코드가 있습니다. 첫 번째 열에 n=50000 바로 아래에 TY=57.48, GH=37.51, XYZ= 5.01을 포함하는 것이 어렵습니다. 구체적으로 다음 순서(수직 배열)입니다.

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 규칙을 사용하면 더 좋아 보입니다. imho:

음

\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}

관련 정보