I am having a slight problem with my code. TexMaker is indicating that it is the first line of the content part (i.e. the row starting from '1') but my experience with Latex tells me it is do with the construction of the columns.
To get an idea of the table I'd like to produce, I provide the picture below:
Now essentially, I'm trying to combine three of these tables into one table - hopefully all the content can fit into one page. Here is my MWE
\documentclass{article}
\usepackage{booktabs}
\usepackage{siuntix}
\usepackage{array}
\usepackage{ragged2e}
\begin{document}
\begin{table} [H]
\centering
\small
\setlength{\tabcolsep}{4.0pt}
\caption[Presentation of survival data for the Commerce, EBE and Science faculties ($N = \num{11 959}$)]{[Presentation of survival data for the Commerce, EBE and Science faculties ($N = \num{11 959}$). \\[\medskipamount] Legend: Y: Academic Year of Study
HRG:~Hazard Ratio --~Graduation;
HRAE: Hazard Ratio --~Academically Excluded. \\
95\% confidence intervals given in parentheses below the point estimates.}
\label{table:SurvivalAll}
\begin{tabular*}{\textwidth}{
S[table-format=1.0]
*{10}{S[table-format=2.1]}
@{}
}
\toprule
\bfseries{Year} &
\multicolumn{5}{c}{\bfseries HRG} &
\multicolumn{5}{c}{\bfseries HRAE}
\\ {(\%)} & {(\%)} \\
\cmidrule(rl){2-6}
\cmidrule(rl){7-11}
&
{\bfseries Commerce ($N = \num(6508)$)} & {\bfseries BCom ($N = \num(2560)$)} & {\bfseries BBusSci ($N = \num(3948)$)} & {\bfseries EBE ($N = \num(2949)$)} & {\bfseries Science ($N = \num(2502)$)} & {\bfseries Commerce)} & {\bfseries BCom} & {\bfseries BBusSci} & {\bfseries EBE} & {\bfseries Science}
\midrule
1 & 0.0 & 0.0& 0.0 & 0.0& 0.0& 1.5 & 1.7 & 1.4 & 10.3 & 12.9\\
& {(0.0{\,;\,}0.0)} & {(0.0{\,;\,}0.0)} & {(0.0{\,;\,}0.0)}& {(0.0{\,;\,}0.0)}& {(0.0{\,;\,}0.0)}& {(1.2{\,;\,}1.8)} & {(1.2{\,;\,}2.2)} & {(1.0{\,;\,}1.7)} & {(9.2{\,;\,}11.4)} & {(11.6{\,;\,}14.2)} \\[1ex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0 &10.2 & 2.2 &3.3 &10.3 \\
& {(73.2{\,;\,}86.5)} & {(61.1{\,;\,}85.5)} & {(75.6{\,;\,}91.0)}& {(60.5{\,;\,}75.5)}& {(64.6{\,;\,}94.0)}& {(1.4{\,;\,}8.7)}& {(1.7{\,;\,}18.7)}& {($-$0.8{\,;\,}5.3)}& {(0.5{\,;\,}6.2)} & {($-$0.7{\,;\,}24.7)} \\[1ex]
7 & 75.0& 71.4 & 77.8 & 56.0 & 50.0 &18.8 &14.3 &22.2 &12.0 &50.0 \\
& {(53.8{\,;\,}96.2)} & {(38.0{\,;\,}104.9)} & {(50.6{\,;\,}104.9)}& {(36.5{\,;\,}75.5)}& {($-$19.3{\,;\,}119.3)}& {($-$0.4{\,;\,}37.9)}& {($-$11.6{\,;\,}40.2)}& {($-$4.9{\,;\,}49.4)} & {($-$0.7{\,;\,}24.7)}& {($-$19.3{\,;\,}119.3)} \\[1ex]
8 & 100.0 & 100.0 & 0.0 & 66.7 & 0.0 & 0.0 & 0.0 & 0.0 & 0.0 & 0.0\\
& {(100.0{\,;\,}100.0)} & {(100.0{\,;\,}100.0)} & {(50.6{\,;\,}104.9)}& {(13.3{\,;\,}120.0)}& {(1.2{\,;\,}1.8)}& {(0.0{\,;\,}0.0)}& {(0.0{\,;\,}0.0)}& {(0.0{\,;\,}0.0)}& {(0.0{\,;\,}0.0)} & {(0.0{\,;\,}0.0)} \\
\bottomrule
\end{tabular*}
\end{table}
siunitx
package and commenting out all but the headers and row 1, the first error that appears involves using\num(6508)
instead of\num{6508}
.