I am having a problem when creating a table.
It keeps telling me that there is a missing $ but i don't see where it is missing
here is the line of code:
Code: Select all
Code, edit and compile here:
\begin{table}\centering\begin{tabular}{|c|c|c|c|}\hlineSex & n & X & $\hat{p}$= X/n\\\hline\hlineWomen & 537 & 328 & 0.6108 \\Men & 532 & 234 & 0.4398 \\\hlineTotal & 1069 & 562 & 0.5257 \\\hline\end{tabular}\caption{Instagram data}\label{tab:firstTable}\end{table}
and here's what it's telling me: Please help and thank you in advance