I have been looking for an answer (in this site and others) for about three hours, commented out the vast majority of my code, and I still have no answer to my issue. I have a table which returns multiple misplaced \omit and misplaced \span errors. Why is this happening? It must be something very silly, I guess. This is my code:
\documentclass[12pt]{article}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{eurosym}
\usepackage{graphicx}
\usepackage{subfig}
\usepackage{caption}
\usepackage{xcolor}
\usepackage{amsmath}
\def\sym#1{\ifmmode{}^{#1}\else\({}^{#1}\)\fi}
\begin{document}
\begin{center}
%TCIMACRO{%
%\TeXButton{B}{\def\sym#1{\ifmmode^{#1}\else\(^{#1}\)\fi}
%\begin{table}[h]\centering}}%
%BeginExpansion
\begin{table}[h]\centering%
%EndExpansion
\caption{Heterogeneous effect - The role of confidence} \label%
{tab:regression2}%
\begin{tabular}{lcccc}
\hline\hline
& Placement & Placement & Placement & Placement \\
& {\small {Model E}} & {\small {Model F}} & {\small {Model G}} & {\small {%
Model H }} \\ \hline
Treatment 1 & -10.61\sym{**} & & -2.811 & 0 \\
& (0.048) & & (0.677) & ($\cdot $) \\[1em]
Sample Score & & 4.332\sym{***} & 3.813\sym{*} & 4.332\sym{***} \\
& & (0.007) & (0.061) & (0.007) \\[1em]
Treat.1 $X$ Sample Score & 7.005\sym{***} & 2.064\sym{**} & 3.245 &
2.064\sym{**} \\
& (0.002) & (0.046) & (0.283) & (0.046) \\[1em]
Male & 5.031\sym{**} & 4.526\sym{*} & 4.524\sym{*} & 4.526\sym{*} \\
& (0.032) & (0.054) & (0.054) & (0.054) \\
Constant & 54.57\sym{***} & 46.17\sym{***} & 47.40\sym{***} & 46.17\sym{***} \\ %
& (0.000) & (0.000) & (0.000) & (0.000) \\ \hline\hline
N & 282 & 282 & 282 & 282 \\
$R^{2}$ & 0.0648 & 0.0761 & 0.0767 & 0.0761 \\ \hline\hline
\end{tabular}%
\smallskip
\multicolumn{4}{p{0.85\linewidth}}{\footnotesize NOTES: The dependent variable is placement (the reported belief that own performance in the quiz is above the median). Models E-G are OLS regressions. Model H is a semi-structural estimation imposing the model's restriction that Treatment $1>0$. \textit{P}-values in parentheses. \sym{*} \(p<0.10\), \sym{**} \(p<0.10\), \sym{***} \(p<0.10\).} \\
%TCIMACRO{\TeXButton{E}{\end{table}}}%
%BeginExpansion
\end{table}%
\end{center}
\end{document}
I know the spacing is bad but it should work. Please note that a colleague of mine uses Scientific Workplace, which has serious compatibility issues. That is why I use the multicolumn after the \end{tabular} and I avoid using packages such as booktabs.
Thanks in advance.
\multicolumn
can't go outside atabular
environment. I think you can replace\multicolumn{4}{p{0.85\linewidth}}
by\parbox{0.85\linewidth}
or something like that to achieve the same effect.threeparttable
package as shown in my answer to one of your previous questions: tex.stackexchange.com/a/502001/134144