I have a problem in layout of the table. Code is as follow. When I take-off multicolumn and cline command line then it works. Otherwise it provide an error message mentioning Missing number, treated as zero.
D
l.771 }
Is there any solution for this. Thanks in advance.
Syed
\begin{landscape}
\renewcommand{\baselinestretch}{1}
\begin{table}[!htb]
\renewcommand\thetable{A1}
\caption{\centerline{\bf Table A1}\
\centerline{\bf Univariate Comparison of Derivatives Users and Non-users}\vspace{-0.14 mm}}
\label{Table A1}
{\footnotesize This table provide mean and median}\\
\vspace{-4 mm}
\normalsize
\begin{center}
\scalebox{0.92}{
\begin{tabular}{lllllllllllllll}
\hline \hline
& \multicolumn{3}{c}{All firms} &&&&\multicolumn{3}{c}{Derivatives users} &&&&\multicolumn{Derivatives non-users}&&&& \multicolumn{2}{c}{Difference tests} \\
\cline{2-4}
\cline{6-8}
\cline{10-12}
\cline{14-15}
Variables & N & Mean & Median & & N & Mean & Median & & N & Mean & Median & & Mean & Median \\
& & & & & & & & & & & & & t-test & Wilcoxon test \\
I & 8 & 0.0315 & 04 & & 31 & 0.0456 & 28 & & 557 & -0.014 & -0.0131 & & 0.0596*** & 0.0359*** \\
B & 2388 & 0.6485 & 0.5405 & & 11 & 077 & 0.5495 & & 557 & 34 & 0.5076 & & -0.0457 & 0.0419*** \\
E & 2388 & 4.3319 & 4.1561 & & 1831 & 4.5264 & 11 & & 557 & 3.7036 & 3.519 & & 0.8288*** & 0.8621*** \\
S & 2388 & 12.8891 & 12.516 & & 1831 & 13.4206 & 1301245 & & 557 & 11.1725 & 11.1486 & & 2.2481*** & 1.9759*** \\
N & 2388 & 3.10E+00 & 3 & & 1831 & 3.2501 & 3 & & 557 & 2.6014 & 2 & & 0.6487*** & 1*** \\
tio & 2065 & 0.3366 & 0.0037 & & 1661 & 0.3057 & 0.005 & & 404 & 0.4634 & 0.0002 & & -0.1577 & 0.0048 \\
les to net sales & 2170 & 40.2858 & 41.32 & & 1750 & 44.1013 & 46.94 & & 420 & 24.3878 & 12.28 & & 19.7135*** & 34.66*** \\
Depriciation & 2200 & 0.0304 & 0.0254 & & 1764 & 0.0324 & 0.0275 & & 436 & 0.0227 & 0.0156 & & 0.0097*** & 0.0119*** \\
Return on assets & 2388 & 0.0196 & 0.0358 & & 1831 & 0.0318 & 0.0359 & & 557 & 0.0198 & 0.0352 & & 0.0120*** & 0.0007 \\
se & 2342 & 0.2164 & 0.1629 & & 1794 & 0.0196 & 0.1546 & & 548 & 0.2843 & 0.1952 & & -0.0886*** & -0.0406*** \\
\hline \hline
\end{tabular}
}
\end{center}
\end{table}
\end{landscape}
Best Answer
Well,
TeX
-error messages can be confusing. There are two problems with your code:\multicolumn
always needs three arguments. So\multicolumn{Derivatives non-users}
is missing two arguments.\multicolumn{3}{c}{some text}
tells TeX to create a cell that spans three columns. This means that you have to remove two&
s.The following compiles ok: