I have a problem with my table. Basically, I would like to leave a medium skip after the hline
before the name of the models (i.e. after the line and before 1. Female).
I tried:
\documentclass{article}
\usepackage{rotating}
\begin{document}
\begin{sidewaystable}
\centering
\footnotesize{
\def\sym#1{\ifmmode^{#1}\else\(^{#1}\)\fi}
\caption{\textbf{Sensitivity Analysis II}\label{table5}}
\begin{tabular}{l*{5}{c}}
\hline\hline
&\multicolumn{1}{c}{\textbf{Fst Stage}}&\multicolumn{2}{c}{\textbf{Snd Stage}}&\multicolumn{1}{c}{\textbf{LL}}&\multicolumn{1}{c}{\textbf{$\rho$=0}} \smallskip \\
&\multicolumn{1}{c}{\textbf{Lagged SF}}&\multicolumn{1}{c}{\textbf{SF}}&\multicolumn{1}{c}{\textbf{Fairness}}& &\\
&\multicolumn{1}{c}{\textbf{(Country Level)}}&&&&\\
\hline \medskip
1. Female &0.012***& 0.009***& 0.1999***&3,504.223& -0.053***\\
2. Male \medskip\\
3. Europe\\
4. Africa\\
5. Asia\\
6. North America\\
7. South America\\
8. Others \medskip \\
9. Left-Oriented\\
10. Right-Oriented \medskip \\
11. Competition is bad\\
12. Competition is good \medskip \\
13. Married \\
14. Single\medskip \\
15. Turst Others\\
16. No Trust Others \smallskip\\
\hline\hline
\multicolumn{6}{l}{\footnotesize * \(p<0.10\), ** \(p<0.05\), *** \(p<0.01\)}\\
\multicolumn{6}{l}{\footnotesize Standard errors in parentheses}\\
\end{tabular}}
\end{sidewaystable}
\end{document}
Apparently it does not work. No matter where I try to put that skip (before or after hline or after &\multicolumn{1}{c}{\textbf{(Country Level)}}&&&&\\)
I cannot leave any skip after the hline
.
Best Answer
Here are some improvements and a simplification of the code of your table. The row numbers are automated and
right-aligned
, emulating anenumerate
environment, so that the text in the first column is always left-aligned. I also usedbooktabs
, which makes some vertical padding around horizontal lines in tables, and defines an adjustable\addlinespace
command , that allows easily separating groups of rows. Last, themakecell
package allows for line breaks inside cells, and a common formatting of column/row heads.