I have a problem with the alignment of the commas in a regression table. Due to the fact that I also have mathematical expressions in the heading, other solutions I found do not work. Is it still possible to get the commas in a row here? Here is a minimal example (I use LuaLaTeX):
\documentclass[12pt]{scrartcl}
\usepackage{amsmath}
\usepackage{mathtools}
\usepackage{unicode-math}
\usepackage{booktabs}
\usepackage{array}
\usepackage{threeparttable}
\usepackage{tabularx}
\begin{document}
\begin{table}[h]
\begin{center}
\caption{Table}
\begin{threeparttable}
\begin{tabularx}{0.7\textwidth}{@{}>{$}X<{$}>{$}c<{$}>{$}c<{$}>{$}c<{$}@{}}\\
\toprule
& (\text{minw} - p50) & (\text{minw} - p50)^2 & R^2\\
\midrule
p5 - p50 & 1{,}106^{***} & 0{,}375^{***} & 0{,}441\\
& (0{,}100) & (0{,}085) &\\
p10 - p50 & 1{,}161^{***} & 0{,}516^{***} & 0{,}575\\
& (0{,}089) & (0{,}079) &\\
\bottomrule
\end{tabularx}
\begin{tablenotes}[flushleft]
\setlength\labelsep{0pt} %So that the word „Notes“ is on the left margin
\footnotesize
\item[]Notes
\end{tablenotes}
\end{threeparttable}
\end{center}
\end{table}
\end{document}