Writing
\documentclass{article}
\begin{document}
\begin{table}
\begin{tabular}{lr@{}lr@{}l}
\hline
& \multicolumn{2}{c}{First column} & \multicolumn{2}{c}{Second column} \\
\hline
Variable Name & 98 & .1234567 & 1234 & .56 \\
& (0 & .6789) & (54 & .3) \\
\hline
\end{tabular}
\end{table}
\end{document}
results in
This is a variant of the code from this answer.
The column captions “First column” and “Second column” are perfectly centred due to \multicolumn{2}{c}{First column} and \multicolumn{2}{c}{Second column}. The numbers, however, are left-justified because of r@{}l but I would like to centre them below the column captions. I tried editing r@{}l but this did not help because it is required to stay this way in order to align all numbers along their decimal points.
I chose this solution because it does not need any packages and the siunitx package does not work on my computer (I don’t know why that is).
So, is there a way to solve this problem without packages (or at least without siunitx)?





siunitx, and theScolumn type. – Bernard Jul 07 '19 at 13:36siunitxdoesn't work. Did you do a thorough update to your TeX distribution? What is it? – egreg Jul 07 '19 at 13:42dcolumnpackage might be an alternative. – leandriis Jul 07 '19 at 14:02