Alinhamento à esquerda em uma descrição de tabela de variáveis

Alinhamento à esquerda em uma descrição de tabela de variáveis

Não consigo entender por que no código a seguir (possivelmente preciso polir um pouco o preâmbulo, eu sei), não consigo alinhar "Variáveis" à esquerda. Tentei soluções diferentes, mas ainda permanece centrado.

Outra questão (menor e menos importante) é que tentei alterar a ordem das colunas, colocando a descrição no final. No entanto, sempre recebo uma mensagem de erro. Qualquer ideia?

\documentclass[11pt]{article}
\usepackage{rotating}

\usepackage{longtable}
\usepackage[labelfont=bf, labelsep=newline, justification=centering, textfont=it]{caption}
\usepackage{adjustbox}
\usepackage{graphicx}
\usepackage{booktabs, makecell, siunitx}
\usepackage{eqparbox}
\pagenumbering{gobble}
\usepackage{booktabs}
\usepackage[referable,para]{threeparttablex}
\usepackage[a4paper,margin=1.5cm]{geometry}
\usepackage{multirow}
\usepackage{pdflscape}
\usepackage{stackengine}
\usepackage{interval}
\usepackage{amsmath,ragged2e} % <-- new
\usepackage{interval,pbox}

\usepackage{booktabs,tabularx}

\sisetup{group-separator={,}, table-format=1.3, table-space-text-post=***, 
table-number-alignment =center}
\newcommand*{\MyIndent}
{\hspace*{1.5cm}}
\usepackage{dcolumn}
\newcolumntype{d}[1]{D..{#1}}
\newcommand\mc[1]{\multicolumn{1}{c}{#1}} % handy shortcut macro

\newcommand\mytab[1]{%
   \smash[b]{\begin{tabular}[c]{@{}c@{}}#1\end{tabular}}}
\hyphenation{bur-kina}

\begin{document}

\begin{table}
\renewcommand{\arraystretch}{1.5} 

\caption{Descriptions of variables\label{A1}}
\begin{tabularx}{\textwidth}{@{}lXSS@{}}
\toprule
\multicolumn{1}{l}{Variables}&\mc{Description}&\mc{Mean}&\mc{SD}\\
\midrule
Health&Test of a really long description which should itself span many rows, in fact occupying much space, hopefully, causing it to span a couple of normal rows. Test of a really long description which should itself span many rows, in fact occupying much space, hopefully, causing it to span a couple of normal rows&\mc{0.8049}&\mc{0.3928}\\
Age&Test of a really long description which should itself span many rows, in fact occupying much space, hopefully, causing it to span a couple of normal rows&\mc{49.16}&\mc{15.82}\\
\bottomrule
\end{tabularx}
\end{table}
\end{document}

Responder1

Algo assim?

\documentclass[11pt]{article}
\usepackage{rotating}

\usepackage{longtable}
\usepackage[labelfont=bf, labelsep=newline, justification=centering, textfont=it]{caption}
\usepackage{adjustbox}
\usepackage{graphicx}
\usepackage{booktabs, makecell, siunitx}
\usepackage{eqparbox}
\pagenumbering{gobble}
\usepackage{booktabs}
\usepackage[referable,para]{threeparttablex}
\usepackage[a4paper,margin=1.5cm]{geometry}
\usepackage{multirow}
\usepackage{pdflscape}
\usepackage{stackengine}
\usepackage{interval}
\usepackage{amsmath,ragged2e} % <-- new
\usepackage{interval,pbox}

\usepackage{booktabs,tabularx}

\sisetup{group-separator={,}, table-format=1.3, table-space-text-post=***, 
table-number-alignment =center}
\newcommand*{\MyIndent}
{\hspace*{1.5cm}}
\usepackage{dcolumn}
\newcolumntype{d}[1]{D..{#1}}
\newcommand\mc[1]{\multicolumn{1}{c}{#1}} % handy shortcut macro

\newcommand\mytab[1]{%
   \smash[b]{\begin{tabular}[c]{@{}c@{}}#1\end{tabular}}}
\hyphenation{bur-kina}

\begin{document}

\begin{table}
\renewcommand{\arraystretch}{1.5} 

\caption{Descriptions of variables\label{A1}}
\begin{tabularx}{\textwidth}{@{}lXSS@{}}
\toprule
\multicolumn{1}{@{}l}{Variables}&\mc{Description}&\mc{Mean}&\mc{SD}\\ % @{} here
\midrule
Health&Test of a really long description which should itself span many rows, in fact occupying much space, hopefully, causing it to span a couple of normal rows. Test of a really long description which should itself span many rows, in fact occupying much space, hopefully, causing it to span a couple of normal rows&\mc{0.8049}&\mc{0.3928}\\
Age&Test of a really long description which should itself span many rows, in fact occupying much space, hopefully, causing it to span a couple of normal rows&\mc{49.16}&\mc{15.82}\\
\bottomrule
\end{tabularx}
\end{table}
\end{document}

insira a descrição da imagem aqui

informação relacionada