I have a simple table with four columns. Strangely, the last column, the right-most one, compiles as if it was "away" from the others. Why would this be? It is very annoying. Here is my code:
\documentclass[12pt]{article}
\usepackage{eurosym}
\usepackage{graphicx}
\usepackage{subcaption}
\usepackage{amsmath}
\usepackage{caption}
\usepackage{xcolor}
\begin{document}
\begin{table}[h]
\caption{Title goes here}
\label{tab:regression2}
\centering
\resizebox{0.9\textwidth}{!}{
{
\def\sym#1{\ifmmode^{#1}\else\(^{#1}\)\fi}
\begin{tabular}{l*{4}{c}}
\hline\hline
& Placement & Placement & Placement & Placement \\
&\multicolumn{1}{c}{ \small{Model E}}&\multicolumn{1}{c}{\small{Model F}}&\multicolumn{1}{c}{\small{Model G}}&\multicolumn{1}{c}{\small{Model H }}\\
\hline
Treatment 1 & -10.61\sym{**} & & -3.811 & 0 \\
& (0.048) & & (0.677) & ($\cdot$) \\
[1em]
Sample Score & & 1.332\sym{***}& 3.813\sym{*} & 1.732\sym{***} \\
& & (0.237) & (0.061) & (0.007) \\
[1em]
Treat.1 \textit{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.154) \\
Constant & 44.57\sym{***}& 16.17\sym{***}& 37.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
\multicolumn{5}{l}{\footnotesize NOTES: The dependent variable is placement (the reported belief that own performance in the quiz is }\\
\multicolumn{5}{l}{\footnotesize above the median). Models E-G are OLS regressions. Model H is a semi-structural estimation }\\
\multicolumn{5}{l}{\footnotesize imposing the model's restriction that $Treatment 1 >0$. }\\
\multicolumn{5}{l}{\footnotesize \textit{P}-values in parentheses. \sym{*} \(p<0.10\), \sym{**} \(p<0.05\), \sym{***} \(p<0.01\).}\\
\end{tabular}
}
}
\end{table}
\end{document}
Thank you. I am using TexStudio to make this. I have tried to use the code from the answer here in this answer, but, although it improves, it is not perfect and TexStudio returns an error: illegal character, in the line of begin{tabular}).