0

I am trying to achieve below table show in the figure, but I couldn't succeed it. I tried the below code.

enter image description here

\begin{table}[]
\centering
\begin{tabular}{lllllll}
Dataset & Model & Evaluation criteria & Rank &  &  &  \\
 &  & RMSE & MAPE & MAE & R &  \\
(A) & Proposed &  &  &  &  &  \\
 & FN &  &  &  &  &  \\
 & NN &  &  &  &  &  \\
 & RX &  &  &  &  &  \\
(B) & Proposed &  &  &  &  &  \\
 & FN &  &  &  &  &  \\
 & NN &  &  &  &  &  \\
 & RX &  &  &  &  &  \\
(C) & Proposed &  &  &  &  &  \\
 & FN &  &  &  &  &  \\
 & NN &  &  &  &  &  \\
 & ARX &  &  &  &  &  \\
(D) & Proposed &  &  &  &  &  \\
 & FFN &  &  &  &  &  \\
 & LNN &  &  &  &  &  \\
 & ARX &  &  &  &  & 
\end{tabular}
\end{table}
Case Msee
  • 229

2 Answers2

2

enter image description here

\begin{table}[]
\centering
\begin{tabular}{|c|c|c|c|c|c|c|}
\hline
\multirow{2}{*}{Dataset} & \multirow{2}{*}{Model} & \multicolumn{4}{c|}{Evaluation criteria}   &  \multirow{2}{*}{Rank} \\ 
\cline{3-6}
 &  & RMSE & MAPE & MAE & R &  \\
 \hline
\multirow{4}{*}{\rotatebox{90}{(A)}} & Proposed &  &  &  &  &  \\
\cline{2-7}
 & FN &  &  &  &  &  \\
 \cline{2-7}
 & NN &  &  &  &  &  \\
 \cline{2-7}
 & RX &  &  &  &  &  \\
 \cline{1-7}
\multirow{4}{*}{\rotatebox{90}{(B)}} & Proposed &  &  &  &  &  \\
\cline{2-7}
 & FN &  &  &  &  &  \\
 \cline{2-7}
 & NN &  &  &  &  &  \\
 \cline{2-7}
 & RX &  &  &  &  &  \\
 \cline{1-7}
\multirow{4}{*}{\rotatebox{90}{(C)}} & Proposed &  &  &  &  &  \\
\cline{2-7}
 & FN &  &  &  &  &  \\
 \cline{2-7}
 & NN &  &  &  &  &  \\
 \cline{2-7}
 & ARX &  &  &  &  &  \\
 \cline{1-7}
\multirow{4}{*}{\rotatebox{90}{(D)}} & Proposed &  &  &  &  &  \\
\cline{2-7}
 & FFN &  &  &  &  &  \\
 \cline{2-7}
 & LNN &  &  &  &  &  \\
 \cline{2-7}
 & ARX &  &  &  &  &\\
\hline
\end{tabular}
\end{table}
Saravanan
  • 1,475
1

You have to load multirowand rotating for that . The makecell package will also be useful, as it allows for line breaks and common formatting in standard cells. Furthermore, you can define some vertical padding to cells with the \setcellgapes command.

\documentclass[10pt]{article}
\usepackage{array, rotating}
\usepackage{multirow, makecell}
\usepackage[a4paper, total={8in, 10in}]{geometry}

\begin{document}

\begin{table}[]
\centering\sffamily
\renewcommand{\theadfont}{\normalsize\bfseries}
\setcellgapes{1ex}\makegapedcells
\begin{tabular}{*{6}{c|}c}
\hline
\multirowthead{2}{Dataset} & \multirowthead{2}{Model} & \multicolumn{4}{c|}{\bfseries Evaluation criteria} & \multirowthead{2}{Rank} \\
\cline{3-6}
 & & \textbf{RMSE} & \textbf{MAPE} & \textbf{MAE} & \textbf{R} & \\
 \hline
\multirow{6}{*}{\turnbox{90}{(A)}} & Proposed & & & & & \\
 \cline{2-7}
 & FN & & & & & \\
 \cline{2-7}
 & NN & & & & & \\
 \cline{2-7}
 & RX & & & & & \\
 \hline
\multirow{6}{*}{\turnbox{90}{(B)}} & Proposed & & & & & \\
 \cline{2-7}
 & FN & & & & & \\
 \cline{2-7}
 & NN & & & & & \\
 \cline{2-7}
 & RX & & & & & \\
 \hline
\multirow{6}{*}{\turnbox{90}{(C)}} & Proposed & & & & & \\
 \cline{2-7}
 & FN & & & & & \\
 \cline{2-7}
 & NN & & & & & \\
 \cline{2-7}
 & ARX & & & & & \\
 \hline
\multirow{6}{*}{\turnbox{90}{(D)}} & Proposed & & & & & \\
 \cline{2-7}
 & FFN & & & & & \\
 \cline{2-7}
 & LNN & & & & & \\
 \cline{2-7}
 & ARX & & & & & \\
 \hline
\end{tabular}
\end{table}

\end{document} 

enter image description here

Bernard
  • 271,350