
#[
#import "@preview/tablex:0.0.8": tablex, cellx, hlinex

#tablex(
    columns: 4,
    auto-vlines: false,
    auto-hlines: false,
    column-gutter: 0.25em,
    hlinex(y: 0, stroke: 1pt),
    cellx(colspan: 2, x: 2, y: 0, align: center + top)[*group*],
    hlinex(y: 1, start: 2, end: 4, stroke: 0.75pt),
    cellx(colspan: 1, x: 1, y: 1, align: center + top)[*Overall*],
    cellx(colspan: 1, x: 2, y: 1, align: center + top)[1],
    cellx(colspan: 1, x: 3, y: 1, align: center + top)[2],
    hlinex(y: 2, stroke: 0.75pt),
    cellx(colspan: 1, x: 0, y: 2, align: left + top)[*empty*],
    cellx(colspan: 1, x: 0, y: 3, align: left + top)[#h(12.0pt)Mean (SD)],
    cellx(colspan: 1, x: 1, y: 3, align: center + top)[2 (1)],
    cellx(colspan: 1, x: 2, y: 3, align: center + top)[NC],
    cellx(colspan: 1, x: 3, y: 3, align: center + top)[2 (1)],
    cellx(colspan: 1, x: 0, y: 4, align: left + top)[#h(12.0pt)Median [Min, Max]],
    cellx(colspan: 1, x: 1, y: 4, align: center + top)[2 [1, 3]],
    cellx(colspan: 1, x: 2, y: 4, align: center + top)[NC],
    cellx(colspan: 1, x: 3, y: 4, align: center + top)[2 [1, 3]],
    cellx(colspan: 1, x: 0, y: 5, align: left + top)[#h(12.0pt)Missing],
    cellx(colspan: 1, x: 1, y: 5, align: center + top)[3 (50%)],
    cellx(colspan: 1, x: 2, y: 5, align: center + top)[3 (100%)],
    cellx(colspan: 1, x: 3, y: 5, align: center + top)[0 (0%)],
    hlinex(y: 6, stroke: 1pt),
    cellx(colspan: 4, x: 0, y: 6)[#text(size: 0.8em)[NC - Not computable]],
)
]
