Skip to content

Commit

Permalink
Merge pull request #33 from PumasAI/jk/show-total-tests
Browse files Browse the repository at this point in the history
test show_total and show_overall
  • Loading branch information
jkrumbiegel authored Sep 20, 2024
2 parents b988970 + 45edc09 commit 97958e1
Show file tree
Hide file tree
Showing 9 changed files with 1,880 additions and 0 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
\documentclass{article}
\usepackage{threeparttable}
\usepackage{multirow}
\usepackage{booktabs}
\begin{document}
\begin{table}[!ht]
\setlength\tabcolsep{0pt}
\centering
\begin{threeparttable}
\begin{tabular}{@{\extracolsep{2ex}}*{3}{lcc}}
\toprule
& \multicolumn{2}{c}{\textbf{group1}} \\
\cmidrule{2-3}
& a & b \\
\midrule
\textbf{value1} & & \\
\hspace{12.0pt}Mean (SD) & 2.5 (1.29) & 6.5 (1.29) \\
\hspace{12.0pt}Median [Min, Max] & 2.5 [1, 4] & 6.5 [5, 8] \\
\textbf{value2} & & \\
\hspace{12.0pt}a & 2 (50\%) & 1 (25\%) \\
\hspace{12.0pt}b & 1 (25\%) & 2 (50\%) \\
\hspace{12.0pt}c & 1 (25\%) & 1 (25\%) \\
\bottomrule
\end{tabular}
\end{threeparttable}
\end{table}
\end{document}
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
<table class="st-1f5609c8">
<style>
.st-1f5609c8 {
border: none;
margin: 0 auto;
padding: 0.25rem;
border-collapse: separate;
border-spacing: 0.85em 0.2em;
line-height: 1.2em;
}

.st-1f5609c8 tr td {
vertical-align: top;
padding: 0;
border: none;
}

.st-1f5609c8 br {
line-height: 0em;
margin: 0;
}

.st-1f5609c8 sub {
line-height: 0;
}

.st-1f5609c8 sup {
line-height: 0;
}
</style>
<tr><td colspan="3" style="border-bottom: 1.5px solid black; padding: 0"></td></tr>
<tr>
<td style="text-align:center;"></td>
<td colspan="2" style="font-weight:bold;border-bottom:1px solid black; padding-bottom: 0.25em;text-align:center;">group1</td>
</tr>
<tr>
<td style="text-align:center;"></td>
<td style="text-align:center;">a</td>
<td style="text-align:center;">b</td>
</tr>
<tr><td colspan="3" style="border-bottom:1px solid black;padding:0"></td></tr> <tr>
<td style="font-weight:bold;text-align:left;">value1</td>
<td style="text-align:center;"></td>
<td style="text-align:center;"></td>
</tr>
<tr>
<td style="padding-left:12.0pt;text-align:left;">Mean (SD)</td>
<td style="text-align:center;">2.5 (1.29)</td>
<td style="text-align:center;">6.5 (1.29)</td>
</tr>
<tr>
<td style="padding-left:12.0pt;text-align:left;">Median [Min, Max]</td>
<td style="text-align:center;">2.5 [1, 4]</td>
<td style="text-align:center;">6.5 [5, 8]</td>
</tr>
<tr>
<td style="font-weight:bold;text-align:left;">value2</td>
<td style="text-align:center;"></td>
<td style="text-align:center;"></td>
</tr>
<tr>
<td style="padding-left:12.0pt;text-align:left;">a</td>
<td style="text-align:center;">2 (50%)</td>
<td style="text-align:center;">1 (25%)</td>
</tr>
<tr>
<td style="padding-left:12.0pt;text-align:left;">b</td>
<td style="text-align:center;">1 (25%)</td>
<td style="text-align:center;">2 (50%)</td>
</tr>
<tr>
<td style="padding-left:12.0pt;text-align:left;">c</td>
<td style="text-align:center;">1 (25%)</td>
<td style="text-align:center;">1 (25%)</td>
</tr>
<tr><td colspan="3" style="border-bottom: 1.5px solid black; padding: 0"></td></tr>
</table>
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@

#table(
rows: 9,
columns: 3,
column-gutter: 0.25em,
align: (left, center, center),
stroke: none,
table.hline(y: 0, stroke: 1pt),
[],
table.cell(colspan: 2)[*group1*],
table.hline(y: 1, start: 1, end: 3, stroke: 0.75pt),
[],
[a],
[b],
table.hline(y: 2, stroke: 0.75pt),
[*value1*],
[],
[],
[#h(12.0pt)Mean (SD)],
[2.5 (1.29)],
[6.5 (1.29)],
[#h(12.0pt)Median [Min, Max]],
[2.5 [1, 4]],
[6.5 [5, 8]],
[*value2*],
[],
[],
[#h(12.0pt)a],
[2 (50%)],
[1 (25%)],
[#h(12.0pt)b],
[1 (25%)],
[2 (50%)],
[#h(12.0pt)c],
[1 (25%)],
[1 (25%)],
table.hline(y: 9, stroke: 1pt),
)
Loading

0 comments on commit 97958e1

Please sign in to comment.