-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #47 from PumasAI/jk/fix-missing-as-group
Fix `missing` as group in `table_one`
Showing
12 changed files
with
2,238 additions
and
988 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1,069 changes: 1,069 additions & 0 deletions
1,069
test/references/table_one/missing_as_a_group_factor.docx.txt
Large diffs are not rendered by default.
Oops, something went wrong.
26 changes: 26 additions & 0 deletions
26
test/references/table_one/missing_as_a_group_factor.latex.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
\documentclass{article} | ||
\usepackage{threeparttable} | ||
\usepackage{multirow} | ||
\usepackage{booktabs} | ||
\begin{document} | ||
\begin{table}[!ht] | ||
\setlength\tabcolsep{0pt} | ||
\centering | ||
\begin{threeparttable} | ||
\begin{tabular}{@{\extracolsep{2ex}}*{7}{lcccccc}} | ||
\toprule | ||
& & \multicolumn{5}{c}{\textbf{group1}} \\ | ||
\cmidrule{3-7} | ||
& & A & \multicolumn{3}{c}{B} & missing \\ | ||
& & \textbf{group2} & \multicolumn{3}{c}{\textbf{group2}} & \textbf{group2} \\ | ||
\cmidrule{3-3}\cmidrule{4-6}\cmidrule{7-7} | ||
& \textbf{Total} & D & D & missing & Total & missing \\ | ||
\midrule | ||
\textbf{value} & & & & & & \\ | ||
\hspace{12.0pt}Mean (SD) & 3.5 (1.87) & 2 (1.41) & 4 (NaN) & 5 (NaN) & 4.5 (0.707) & 4 (2.83) \\ | ||
\hspace{12.0pt}Median [Min, Max] & 3.5 [1, 6] & 2 [1, 3] & 4 [4, 4] & 5 [5, 5] & 4.5 [4, 5] & 4 [2, 6] \\ | ||
\bottomrule | ||
\end{tabular} | ||
\end{threeparttable} | ||
\end{table} | ||
\end{document} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
<table class="st-4edf7071"> | ||
<style> | ||
.st-4edf7071 { | ||
border: none; | ||
margin: 0 auto; | ||
padding: 0.25rem; | ||
border-collapse: separate; | ||
border-spacing: 0.85em 0.2em; | ||
line-height: 1.2em; | ||
} | ||
|
||
.st-4edf7071 tr td { | ||
vertical-align: top; | ||
padding: 0; | ||
border: none; | ||
} | ||
|
||
.st-4edf7071 br { | ||
line-height: 0em; | ||
margin: 0; | ||
} | ||
|
||
.st-4edf7071 sub { | ||
line-height: 0; | ||
} | ||
|
||
.st-4edf7071 sup { | ||
line-height: 0; | ||
} | ||
</style> | ||
<tr><td colspan="7" style="border-bottom: 1.5px solid black; padding: 0"></td></tr> | ||
<tr> | ||
<td style="text-align:center;"></td> | ||
<td style="text-align:center;"></td> | ||
<td colspan="5" 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;"></td> | ||
<td style="text-align:center;">A</td> | ||
<td colspan="3" style="text-align:center;">B</td> | ||
<td style="text-align:center;">missing</td> | ||
</tr> | ||
<tr> | ||
<td style="text-align:center;"></td> | ||
<td style="text-align:center;"></td> | ||
<td style="font-weight:bold;border-bottom:1px solid black; padding-bottom: 0.25em;text-align:center;">group2</td> | ||
<td colspan="3" style="font-weight:bold;border-bottom:1px solid black; padding-bottom: 0.25em;text-align:center;">group2</td> | ||
<td style="font-weight:bold;border-bottom:1px solid black; padding-bottom: 0.25em;text-align:center;">group2</td> | ||
</tr> | ||
<tr> | ||
<td style="text-align:center;"></td> | ||
<td style="font-weight:bold;text-align:center;">Total</td> | ||
<td style="text-align:center;">D</td> | ||
<td style="text-align:center;">D</td> | ||
<td style="text-align:center;">missing</td> | ||
<td style="text-align:center;">Total</td> | ||
<td style="text-align:center;">missing</td> | ||
</tr> | ||
<tr><td colspan="7" style="border-bottom:1px solid black;padding:0"></td></tr> <tr> | ||
<td style="font-weight:bold;text-align:left;">value</td> | ||
<td style="text-align:center;"></td> | ||
<td style="text-align:center;"></td> | ||
<td style="text-align:center;"></td> | ||
<td style="text-align:center;"></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;">3.5 (1.87)</td> | ||
<td style="text-align:center;">2 (1.41)</td> | ||
<td style="text-align:center;">4 (NaN)</td> | ||
<td style="text-align:center;">5 (NaN)</td> | ||
<td style="text-align:center;">4.5 (0.707)</td> | ||
<td style="text-align:center;">4 (2.83)</td> | ||
</tr> | ||
<tr> | ||
<td style="padding-left:12.0pt;text-align:left;">Median [Min, Max]</td> | ||
<td style="text-align:center;">3.5 [1, 6]</td> | ||
<td style="text-align:center;">2 [1, 3]</td> | ||
<td style="text-align:center;">4 [4, 4]</td> | ||
<td style="text-align:center;">5 [5, 5]</td> | ||
<td style="text-align:center;">4.5 [4, 5]</td> | ||
<td style="text-align:center;">4 [2, 6]</td> | ||
</tr> | ||
<tr><td colspan="7" style="border-bottom: 1.5px solid black; padding: 0"></td></tr> | ||
</table> |
56 changes: 56 additions & 0 deletions
56
test/references/table_one/missing_as_a_group_factor.typ.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
|
||
#table( | ||
rows: 7, | ||
columns: 7, | ||
column-gutter: 0.25em, | ||
align: (left, center, center, center, center, center, center), | ||
stroke: none, | ||
table.hline(y: 0, stroke: 1pt), | ||
[], | ||
[], | ||
table.cell(colspan: 5)[*group1*], | ||
table.hline(y: 1, start: 2, end: 7, stroke: 0.75pt), | ||
[], | ||
[], | ||
[A], | ||
table.cell(colspan: 3)[B], | ||
[missing], | ||
[], | ||
[], | ||
[*group2*], | ||
table.hline(y: 3, start: 2, end: 3, stroke: 0.75pt), | ||
table.cell(colspan: 3)[*group2*], | ||
table.hline(y: 3, start: 3, end: 6, stroke: 0.75pt), | ||
[*group2*], | ||
table.hline(y: 3, start: 6, end: 7, stroke: 0.75pt), | ||
[], | ||
[*Total*], | ||
[D], | ||
[D], | ||
[missing], | ||
[Total], | ||
[missing], | ||
table.hline(y: 4, stroke: 0.75pt), | ||
[*value*], | ||
[], | ||
[], | ||
[], | ||
[], | ||
[], | ||
[], | ||
[#h(12.0pt)Mean (SD)], | ||
[3.5 (1.87)], | ||
[2 (1.41)], | ||
[4 (NaN)], | ||
[5 (NaN)], | ||
[4.5 (0.707)], | ||
[4 (2.83)], | ||
[#h(12.0pt)Median [Min, Max]], | ||
[3.5 [1, 6]], | ||
[2 [1, 3]], | ||
[4 [4, 4]], | ||
[5 [5, 5]], | ||
[4.5 [4, 5]], | ||
[4 [2, 6]], | ||
table.hline(y: 7, stroke: 1pt), | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters