This is the function to format the bounds summary table into gt style.
Source:R/as_gt.R
as_gt.gs_design.Rd
This is the function to format the bounds summary table into gt style.
Usage
# S3 method for gs_design
as_gt(
x,
title = NULL,
subtitle = NULL,
colname_spanner = "Cumulative boundary crossing probability",
colname_spannersub = c("Alternate hypothesis", "Null hypothesis"),
footnote = NULL,
display_bound = c("Efficacy", "Futility"),
display_columns = NULL,
display_inf_bound = TRUE,
...
)
Arguments
- x
an object returned by
summary_bound
- title
a string to specify the title of the gt table
- subtitle
a string to specify the subtitle of the gt table
- colname_spanner
a string to specify the spanner of the gt table
- colname_spannersub
a vector of strings to specify the spanner details of the gt table
- footnote
a list containing
content
,location
, andattr
. thecontent
is a vector of string to specify the footnote text; thelocation
is a vector of string to specify the locations to put the superscript of the footnote index; theattr
is a vector of string to specify the attributes of the footnotes, e.g., c("colname", "title", "subtitle", "analysis", "spanner"); users can use the functions in thegt
package to custom themselves.- display_bound
a vector of strings specifying the label of the bounds. The default is
c("Efficacy", "Futility")
- display_columns
a vector of strings specifying the variables to be displayed in the summary table
- display_inf_bound
a logic value (TRUE or FALSE) whether to display the +-inf bound
- ...
additional arguments
Examples
# the default output
library(dplyr)
gs_design_ahr() %>%
summary() %>%
as_gt()
#> <div id="crmxzwxqxj" style="overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
#> <style>html {
#> font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', 'Fira Sans', 'Droid Sans', Arial, sans-serif;
#> }
#>
#> #crmxzwxqxj .gt_table {
#> display: table;
#> border-collapse: collapse;
#> margin-left: auto;
#> margin-right: auto;
#> color: #333333;
#> font-size: 16px;
#> font-weight: normal;
#> font-style: normal;
#> background-color: #FFFFFF;
#> width: auto;
#> border-top-style: solid;
#> border-top-width: 2px;
#> border-top-color: #A8A8A8;
#> border-right-style: none;
#> border-right-width: 2px;
#> border-right-color: #D3D3D3;
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #A8A8A8;
#> border-left-style: none;
#> border-left-width: 2px;
#> border-left-color: #D3D3D3;
#> }
#>
#> #crmxzwxqxj .gt_heading {
#> background-color: #FFFFFF;
#> text-align: center;
#> border-bottom-color: #FFFFFF;
#> border-left-style: none;
#> border-left-width: 1px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 1px;
#> border-right-color: #D3D3D3;
#> }
#>
#> #crmxzwxqxj .gt_title {
#> color: #333333;
#> font-size: 125%;
#> font-weight: initial;
#> padding-top: 4px;
#> padding-bottom: 4px;
#> padding-left: 5px;
#> padding-right: 5px;
#> border-bottom-color: #FFFFFF;
#> border-bottom-width: 0;
#> }
#>
#> #crmxzwxqxj .gt_subtitle {
#> color: #333333;
#> font-size: 85%;
#> font-weight: initial;
#> padding-top: 0;
#> padding-bottom: 6px;
#> padding-left: 5px;
#> padding-right: 5px;
#> border-top-color: #FFFFFF;
#> border-top-width: 0;
#> }
#>
#> #crmxzwxqxj .gt_bottom_border {
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> }
#>
#> #crmxzwxqxj .gt_col_headings {
#> border-top-style: solid;
#> border-top-width: 2px;
#> border-top-color: #D3D3D3;
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> border-left-style: none;
#> border-left-width: 1px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 1px;
#> border-right-color: #D3D3D3;
#> }
#>
#> #crmxzwxqxj .gt_col_heading {
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
#> font-weight: normal;
#> text-transform: inherit;
#> border-left-style: none;
#> border-left-width: 1px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 1px;
#> border-right-color: #D3D3D3;
#> vertical-align: bottom;
#> padding-top: 5px;
#> padding-bottom: 6px;
#> padding-left: 5px;
#> padding-right: 5px;
#> overflow-x: hidden;
#> }
#>
#> #crmxzwxqxj .gt_column_spanner_outer {
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
#> font-weight: normal;
#> text-transform: inherit;
#> padding-top: 0;
#> padding-bottom: 0;
#> padding-left: 4px;
#> padding-right: 4px;
#> }
#>
#> #crmxzwxqxj .gt_column_spanner_outer:first-child {
#> padding-left: 0;
#> }
#>
#> #crmxzwxqxj .gt_column_spanner_outer:last-child {
#> padding-right: 0;
#> }
#>
#> #crmxzwxqxj .gt_column_spanner {
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> vertical-align: bottom;
#> padding-top: 5px;
#> padding-bottom: 5px;
#> overflow-x: hidden;
#> display: inline-block;
#> width: 100%;
#> }
#>
#> #crmxzwxqxj .gt_group_heading {
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
#> padding-right: 5px;
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
#> font-weight: initial;
#> text-transform: inherit;
#> border-top-style: solid;
#> border-top-width: 2px;
#> border-top-color: #D3D3D3;
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> border-left-style: none;
#> border-left-width: 1px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 1px;
#> border-right-color: #D3D3D3;
#> vertical-align: middle;
#> }
#>
#> #crmxzwxqxj .gt_empty_group_heading {
#> padding: 0.5px;
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
#> font-weight: initial;
#> border-top-style: solid;
#> border-top-width: 2px;
#> border-top-color: #D3D3D3;
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> vertical-align: middle;
#> }
#>
#> #crmxzwxqxj .gt_from_md > :first-child {
#> margin-top: 0;
#> }
#>
#> #crmxzwxqxj .gt_from_md > :last-child {
#> margin-bottom: 0;
#> }
#>
#> #crmxzwxqxj .gt_row {
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
#> padding-right: 5px;
#> margin: 10px;
#> border-top-style: solid;
#> border-top-width: 1px;
#> border-top-color: #D3D3D3;
#> border-left-style: none;
#> border-left-width: 1px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 1px;
#> border-right-color: #D3D3D3;
#> vertical-align: middle;
#> overflow-x: hidden;
#> }
#>
#> #crmxzwxqxj .gt_stub {
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
#> font-weight: initial;
#> text-transform: inherit;
#> border-right-style: solid;
#> border-right-width: 2px;
#> border-right-color: #D3D3D3;
#> padding-left: 5px;
#> padding-right: 5px;
#> }
#>
#> #crmxzwxqxj .gt_stub_row_group {
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
#> font-weight: initial;
#> text-transform: inherit;
#> border-right-style: solid;
#> border-right-width: 2px;
#> border-right-color: #D3D3D3;
#> padding-left: 5px;
#> padding-right: 5px;
#> vertical-align: top;
#> }
#>
#> #crmxzwxqxj .gt_row_group_first td {
#> border-top-width: 2px;
#> }
#>
#> #crmxzwxqxj .gt_summary_row {
#> color: #333333;
#> background-color: #FFFFFF;
#> text-transform: inherit;
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
#> padding-right: 5px;
#> }
#>
#> #crmxzwxqxj .gt_first_summary_row {
#> border-top-style: solid;
#> border-top-color: #D3D3D3;
#> }
#>
#> #crmxzwxqxj .gt_first_summary_row.thick {
#> border-top-width: 2px;
#> }
#>
#> #crmxzwxqxj .gt_last_summary_row {
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
#> padding-right: 5px;
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> }
#>
#> #crmxzwxqxj .gt_grand_summary_row {
#> color: #333333;
#> background-color: #FFFFFF;
#> text-transform: inherit;
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
#> padding-right: 5px;
#> }
#>
#> #crmxzwxqxj .gt_first_grand_summary_row {
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
#> padding-right: 5px;
#> border-top-style: double;
#> border-top-width: 6px;
#> border-top-color: #D3D3D3;
#> }
#>
#> #crmxzwxqxj .gt_striped {
#> background-color: rgba(128, 128, 128, 0.05);
#> }
#>
#> #crmxzwxqxj .gt_table_body {
#> border-top-style: solid;
#> border-top-width: 2px;
#> border-top-color: #D3D3D3;
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> }
#>
#> #crmxzwxqxj .gt_footnotes {
#> color: #333333;
#> background-color: #FFFFFF;
#> border-bottom-style: none;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> border-left-style: none;
#> border-left-width: 2px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 2px;
#> border-right-color: #D3D3D3;
#> }
#>
#> #crmxzwxqxj .gt_footnote {
#> margin: 0px;
#> font-size: 90%;
#> padding-left: 4px;
#> padding-right: 4px;
#> padding-left: 5px;
#> padding-right: 5px;
#> }
#>
#> #crmxzwxqxj .gt_sourcenotes {
#> color: #333333;
#> background-color: #FFFFFF;
#> border-bottom-style: none;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> border-left-style: none;
#> border-left-width: 2px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 2px;
#> border-right-color: #D3D3D3;
#> }
#>
#> #crmxzwxqxj .gt_sourcenote {
#> font-size: 90%;
#> padding-top: 4px;
#> padding-bottom: 4px;
#> padding-left: 5px;
#> padding-right: 5px;
#> }
#>
#> #crmxzwxqxj .gt_left {
#> text-align: left;
#> }
#>
#> #crmxzwxqxj .gt_center {
#> text-align: center;
#> }
#>
#> #crmxzwxqxj .gt_right {
#> text-align: right;
#> font-variant-numeric: tabular-nums;
#> }
#>
#> #crmxzwxqxj .gt_font_normal {
#> font-weight: normal;
#> }
#>
#> #crmxzwxqxj .gt_font_bold {
#> font-weight: bold;
#> }
#>
#> #crmxzwxqxj .gt_font_italic {
#> font-style: italic;
#> }
#>
#> #crmxzwxqxj .gt_super {
#> font-size: 65%;
#> }
#>
#> #crmxzwxqxj .gt_footnote_marks {
#> font-style: italic;
#> font-weight: normal;
#> font-size: 75%;
#> vertical-align: 0.4em;
#> }
#>
#> #crmxzwxqxj .gt_asterisk {
#> font-size: 100%;
#> vertical-align: 0;
#> }
#>
#> #crmxzwxqxj .gt_indent_1 {
#> text-indent: 5px;
#> }
#>
#> #crmxzwxqxj .gt_indent_2 {
#> text-indent: 10px;
#> }
#>
#> #crmxzwxqxj .gt_indent_3 {
#> text-indent: 15px;
#> }
#>
#> #crmxzwxqxj .gt_indent_4 {
#> text-indent: 20px;
#> }
#>
#> #crmxzwxqxj .gt_indent_5 {
#> text-indent: 25px;
#> }
#> </style>
#> <table class="gt_table">
#> <thead class="gt_header">
#> <tr>
#> <td colspan="5" class="gt_heading gt_title gt_font_normal" style>Bound summary for AHR design</td>
#> </tr>
#> <tr>
#> <td colspan="5" class="gt_heading gt_subtitle gt_font_normal gt_bottom_border" style>AHR approximations of ~HR at bound</td>
#> </tr>
#> </thead>
#> <thead class="gt_col_headings">
#> <tr>
#> <th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="2" colspan="1" scope="col">Bound</th>
#> <th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="2" colspan="1" scope="col">Nominal p<sup class="gt_footnote_marks">1</sup></th>
#> <th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="2" colspan="1" scope="col">~HR at bound<sup class="gt_footnote_marks">2</sup></th>
#> <th class="gt_center gt_columns_top_border gt_column_spanner_outer" rowspan="1" colspan="2" scope="colgroup">
#> <span class="gt_column_spanner">Cumulative boundary crossing probability</span>
#> </th>
#> </tr>
#> <tr>
#> <th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="1" colspan="1" scope="col">Alternate hypothesis</th>
#> <th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="1" colspan="1" scope="col">Null hypothesis</th>
#> </tr>
#> </thead>
#> <tbody class="gt_table_body">
#> <tr class="gt_group_heading_row">
#> <td colspan="5" class="gt_group_heading">Analysis: 1 Time: 36 N: 476 Events: 291.9 AHR: 0.68 IF: 1</td>
#> </tr>
#> <tr class="gt_row_group_first"><td class="gt_row gt_left">Efficacy</td>
#> <td class="gt_row gt_right">0.025</td>
#> <td class="gt_row gt_right">0.795</td>
#> <td class="gt_row gt_right">0.9</td>
#> <td class="gt_row gt_right">0.025</td></tr>
#> </tbody>
#>
#> <tfoot class="gt_footnotes">
#> <tr>
#> <td class="gt_footnote" colspan="5"><sup class="gt_footnote_marks">1</sup> One-sided p-value for experimental vs control treatment. Values < 0.5 favor experimental, > 0.5 favor control.</td>
#> </tr>
#> <tr>
#> <td class="gt_footnote" colspan="5"><sup class="gt_footnote_marks">2</sup> Approximate hazard ratio to cross bound.</td>
#> </tr>
#> </tfoot>
#> </table>
#> </div>
gs_power_ahr() %>%
summary() %>%
as_gt()
#> <div id="pezwrjiuks" style="overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
#> <style>html {
#> font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', 'Fira Sans', 'Droid Sans', Arial, sans-serif;
#> }
#>
#> #pezwrjiuks .gt_table {
#> display: table;
#> border-collapse: collapse;
#> margin-left: auto;
#> margin-right: auto;
#> color: #333333;
#> font-size: 16px;
#> font-weight: normal;
#> font-style: normal;
#> background-color: #FFFFFF;
#> width: auto;
#> border-top-style: solid;
#> border-top-width: 2px;
#> border-top-color: #A8A8A8;
#> border-right-style: none;
#> border-right-width: 2px;
#> border-right-color: #D3D3D3;
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #A8A8A8;
#> border-left-style: none;
#> border-left-width: 2px;
#> border-left-color: #D3D3D3;
#> }
#>
#> #pezwrjiuks .gt_heading {
#> background-color: #FFFFFF;
#> text-align: center;
#> border-bottom-color: #FFFFFF;
#> border-left-style: none;
#> border-left-width: 1px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 1px;
#> border-right-color: #D3D3D3;
#> }
#>
#> #pezwrjiuks .gt_title {
#> color: #333333;
#> font-size: 125%;
#> font-weight: initial;
#> padding-top: 4px;
#> padding-bottom: 4px;
#> padding-left: 5px;
#> padding-right: 5px;
#> border-bottom-color: #FFFFFF;
#> border-bottom-width: 0;
#> }
#>
#> #pezwrjiuks .gt_subtitle {
#> color: #333333;
#> font-size: 85%;
#> font-weight: initial;
#> padding-top: 0;
#> padding-bottom: 6px;
#> padding-left: 5px;
#> padding-right: 5px;
#> border-top-color: #FFFFFF;
#> border-top-width: 0;
#> }
#>
#> #pezwrjiuks .gt_bottom_border {
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> }
#>
#> #pezwrjiuks .gt_col_headings {
#> border-top-style: solid;
#> border-top-width: 2px;
#> border-top-color: #D3D3D3;
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> border-left-style: none;
#> border-left-width: 1px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 1px;
#> border-right-color: #D3D3D3;
#> }
#>
#> #pezwrjiuks .gt_col_heading {
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
#> font-weight: normal;
#> text-transform: inherit;
#> border-left-style: none;
#> border-left-width: 1px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 1px;
#> border-right-color: #D3D3D3;
#> vertical-align: bottom;
#> padding-top: 5px;
#> padding-bottom: 6px;
#> padding-left: 5px;
#> padding-right: 5px;
#> overflow-x: hidden;
#> }
#>
#> #pezwrjiuks .gt_column_spanner_outer {
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
#> font-weight: normal;
#> text-transform: inherit;
#> padding-top: 0;
#> padding-bottom: 0;
#> padding-left: 4px;
#> padding-right: 4px;
#> }
#>
#> #pezwrjiuks .gt_column_spanner_outer:first-child {
#> padding-left: 0;
#> }
#>
#> #pezwrjiuks .gt_column_spanner_outer:last-child {
#> padding-right: 0;
#> }
#>
#> #pezwrjiuks .gt_column_spanner {
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> vertical-align: bottom;
#> padding-top: 5px;
#> padding-bottom: 5px;
#> overflow-x: hidden;
#> display: inline-block;
#> width: 100%;
#> }
#>
#> #pezwrjiuks .gt_group_heading {
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
#> padding-right: 5px;
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
#> font-weight: initial;
#> text-transform: inherit;
#> border-top-style: solid;
#> border-top-width: 2px;
#> border-top-color: #D3D3D3;
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> border-left-style: none;
#> border-left-width: 1px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 1px;
#> border-right-color: #D3D3D3;
#> vertical-align: middle;
#> }
#>
#> #pezwrjiuks .gt_empty_group_heading {
#> padding: 0.5px;
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
#> font-weight: initial;
#> border-top-style: solid;
#> border-top-width: 2px;
#> border-top-color: #D3D3D3;
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> vertical-align: middle;
#> }
#>
#> #pezwrjiuks .gt_from_md > :first-child {
#> margin-top: 0;
#> }
#>
#> #pezwrjiuks .gt_from_md > :last-child {
#> margin-bottom: 0;
#> }
#>
#> #pezwrjiuks .gt_row {
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
#> padding-right: 5px;
#> margin: 10px;
#> border-top-style: solid;
#> border-top-width: 1px;
#> border-top-color: #D3D3D3;
#> border-left-style: none;
#> border-left-width: 1px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 1px;
#> border-right-color: #D3D3D3;
#> vertical-align: middle;
#> overflow-x: hidden;
#> }
#>
#> #pezwrjiuks .gt_stub {
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
#> font-weight: initial;
#> text-transform: inherit;
#> border-right-style: solid;
#> border-right-width: 2px;
#> border-right-color: #D3D3D3;
#> padding-left: 5px;
#> padding-right: 5px;
#> }
#>
#> #pezwrjiuks .gt_stub_row_group {
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
#> font-weight: initial;
#> text-transform: inherit;
#> border-right-style: solid;
#> border-right-width: 2px;
#> border-right-color: #D3D3D3;
#> padding-left: 5px;
#> padding-right: 5px;
#> vertical-align: top;
#> }
#>
#> #pezwrjiuks .gt_row_group_first td {
#> border-top-width: 2px;
#> }
#>
#> #pezwrjiuks .gt_summary_row {
#> color: #333333;
#> background-color: #FFFFFF;
#> text-transform: inherit;
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
#> padding-right: 5px;
#> }
#>
#> #pezwrjiuks .gt_first_summary_row {
#> border-top-style: solid;
#> border-top-color: #D3D3D3;
#> }
#>
#> #pezwrjiuks .gt_first_summary_row.thick {
#> border-top-width: 2px;
#> }
#>
#> #pezwrjiuks .gt_last_summary_row {
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
#> padding-right: 5px;
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> }
#>
#> #pezwrjiuks .gt_grand_summary_row {
#> color: #333333;
#> background-color: #FFFFFF;
#> text-transform: inherit;
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
#> padding-right: 5px;
#> }
#>
#> #pezwrjiuks .gt_first_grand_summary_row {
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
#> padding-right: 5px;
#> border-top-style: double;
#> border-top-width: 6px;
#> border-top-color: #D3D3D3;
#> }
#>
#> #pezwrjiuks .gt_striped {
#> background-color: rgba(128, 128, 128, 0.05);
#> }
#>
#> #pezwrjiuks .gt_table_body {
#> border-top-style: solid;
#> border-top-width: 2px;
#> border-top-color: #D3D3D3;
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> }
#>
#> #pezwrjiuks .gt_footnotes {
#> color: #333333;
#> background-color: #FFFFFF;
#> border-bottom-style: none;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> border-left-style: none;
#> border-left-width: 2px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 2px;
#> border-right-color: #D3D3D3;
#> }
#>
#> #pezwrjiuks .gt_footnote {
#> margin: 0px;
#> font-size: 90%;
#> padding-left: 4px;
#> padding-right: 4px;
#> padding-left: 5px;
#> padding-right: 5px;
#> }
#>
#> #pezwrjiuks .gt_sourcenotes {
#> color: #333333;
#> background-color: #FFFFFF;
#> border-bottom-style: none;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> border-left-style: none;
#> border-left-width: 2px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 2px;
#> border-right-color: #D3D3D3;
#> }
#>
#> #pezwrjiuks .gt_sourcenote {
#> font-size: 90%;
#> padding-top: 4px;
#> padding-bottom: 4px;
#> padding-left: 5px;
#> padding-right: 5px;
#> }
#>
#> #pezwrjiuks .gt_left {
#> text-align: left;
#> }
#>
#> #pezwrjiuks .gt_center {
#> text-align: center;
#> }
#>
#> #pezwrjiuks .gt_right {
#> text-align: right;
#> font-variant-numeric: tabular-nums;
#> }
#>
#> #pezwrjiuks .gt_font_normal {
#> font-weight: normal;
#> }
#>
#> #pezwrjiuks .gt_font_bold {
#> font-weight: bold;
#> }
#>
#> #pezwrjiuks .gt_font_italic {
#> font-style: italic;
#> }
#>
#> #pezwrjiuks .gt_super {
#> font-size: 65%;
#> }
#>
#> #pezwrjiuks .gt_footnote_marks {
#> font-style: italic;
#> font-weight: normal;
#> font-size: 75%;
#> vertical-align: 0.4em;
#> }
#>
#> #pezwrjiuks .gt_asterisk {
#> font-size: 100%;
#> vertical-align: 0;
#> }
#>
#> #pezwrjiuks .gt_indent_1 {
#> text-indent: 5px;
#> }
#>
#> #pezwrjiuks .gt_indent_2 {
#> text-indent: 10px;
#> }
#>
#> #pezwrjiuks .gt_indent_3 {
#> text-indent: 15px;
#> }
#>
#> #pezwrjiuks .gt_indent_4 {
#> text-indent: 20px;
#> }
#>
#> #pezwrjiuks .gt_indent_5 {
#> text-indent: 25px;
#> }
#> </style>
#> <table class="gt_table">
#> <thead class="gt_header">
#> <tr>
#> <td colspan="5" class="gt_heading gt_title gt_font_normal" style>Bound summary for AHR design</td>
#> </tr>
#> <tr>
#> <td colspan="5" class="gt_heading gt_subtitle gt_font_normal gt_bottom_border" style>AHR approximations of ~HR at bound</td>
#> </tr>
#> </thead>
#> <thead class="gt_col_headings">
#> <tr>
#> <th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="2" colspan="1" scope="col">Bound</th>
#> <th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="2" colspan="1" scope="col">Nominal p<sup class="gt_footnote_marks">1</sup></th>
#> <th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="2" colspan="1" scope="col">~HR at bound<sup class="gt_footnote_marks">2</sup></th>
#> <th class="gt_center gt_columns_top_border gt_column_spanner_outer" rowspan="1" colspan="2" scope="colgroup">
#> <span class="gt_column_spanner">Cumulative boundary crossing probability</span>
#> </th>
#> </tr>
#> <tr>
#> <th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="1" colspan="1" scope="col">Alternate hypothesis</th>
#> <th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="1" colspan="1" scope="col">Null hypothesis</th>
#> </tr>
#> </thead>
#> <tbody class="gt_table_body">
#> <tr class="gt_group_heading_row">
#> <td colspan="5" class="gt_group_heading">Analysis: 1 Time: 14.9 N: 108 Events: 30 AHR: 0.79 IF: 0.6</td>
#> </tr>
#> <tr class="gt_row_group_first"><td class="gt_row gt_left">Futility</td>
#> <td class="gt_row gt_right">0.9000</td>
#> <td class="gt_row gt_right">1.6031</td>
#> <td class="gt_row gt_right">0.0273</td>
#> <td class="gt_row gt_right">0.1000</td></tr>
#> <tr><td class="gt_row gt_left">Efficacy</td>
#> <td class="gt_row gt_right">0.0038</td>
#> <td class="gt_row gt_right">0.3743</td>
#> <td class="gt_row gt_right">0.0231</td>
#> <td class="gt_row gt_right">0.0038</td></tr>
#> <tr class="gt_group_heading_row">
#> <td colspan="5" class="gt_group_heading">Analysis: 2 Time: 19.2 N: 108 Events: 40 AHR: 0.74 IF: 0.8</td>
#> </tr>
#> <tr class="gt_row_group_first"><td class="gt_row gt_left">Futility</td>
#> <td class="gt_row gt_right">1.0000</td>
#> <td class="gt_row gt_right">Inf</td>
#> <td class="gt_row gt_right">0.0273</td>
#> <td class="gt_row gt_right">0.1000</td></tr>
#> <tr><td class="gt_row gt_left">Efficacy</td>
#> <td class="gt_row gt_right">0.0110</td>
#> <td class="gt_row gt_right">0.4812</td>
#> <td class="gt_row gt_right">0.0897</td>
#> <td class="gt_row gt_right">0.0122</td></tr>
#> <tr class="gt_group_heading_row">
#> <td colspan="5" class="gt_group_heading">Analysis: 3 Time: 24.5 N: 108 Events: 50 AHR: 0.71 IF: 1</td>
#> </tr>
#> <tr class="gt_row_group_first"><td class="gt_row gt_left">Futility</td>
#> <td class="gt_row gt_right">1.0000</td>
#> <td class="gt_row gt_right">Inf</td>
#> <td class="gt_row gt_right">0.0273</td>
#> <td class="gt_row gt_right">0.1000</td></tr>
#> <tr><td class="gt_row gt_left">Efficacy</td>
#> <td class="gt_row gt_right">0.0211</td>
#> <td class="gt_row gt_right">0.5595</td>
#> <td class="gt_row gt_right">0.2070</td>
#> <td class="gt_row gt_right">0.0250</td></tr>
#> </tbody>
#>
#> <tfoot class="gt_footnotes">
#> <tr>
#> <td class="gt_footnote" colspan="5"><sup class="gt_footnote_marks">1</sup> One-sided p-value for experimental vs control treatment. Values < 0.5 favor experimental, > 0.5 favor control.</td>
#> </tr>
#> <tr>
#> <td class="gt_footnote" colspan="5"><sup class="gt_footnote_marks">2</sup> Approximate hazard ratio to cross bound.</td>
#> </tr>
#> </tfoot>
#> </table>
#> </div>
gs_design_wlr() %>%
summary() %>%
as_gt()
#> <div id="ggirkzjvyg" style="overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
#> <style>html {
#> font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', 'Fira Sans', 'Droid Sans', Arial, sans-serif;
#> }
#>
#> #ggirkzjvyg .gt_table {
#> display: table;
#> border-collapse: collapse;
#> margin-left: auto;
#> margin-right: auto;
#> color: #333333;
#> font-size: 16px;
#> font-weight: normal;
#> font-style: normal;
#> background-color: #FFFFFF;
#> width: auto;
#> border-top-style: solid;
#> border-top-width: 2px;
#> border-top-color: #A8A8A8;
#> border-right-style: none;
#> border-right-width: 2px;
#> border-right-color: #D3D3D3;
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #A8A8A8;
#> border-left-style: none;
#> border-left-width: 2px;
#> border-left-color: #D3D3D3;
#> }
#>
#> #ggirkzjvyg .gt_heading {
#> background-color: #FFFFFF;
#> text-align: center;
#> border-bottom-color: #FFFFFF;
#> border-left-style: none;
#> border-left-width: 1px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 1px;
#> border-right-color: #D3D3D3;
#> }
#>
#> #ggirkzjvyg .gt_title {
#> color: #333333;
#> font-size: 125%;
#> font-weight: initial;
#> padding-top: 4px;
#> padding-bottom: 4px;
#> padding-left: 5px;
#> padding-right: 5px;
#> border-bottom-color: #FFFFFF;
#> border-bottom-width: 0;
#> }
#>
#> #ggirkzjvyg .gt_subtitle {
#> color: #333333;
#> font-size: 85%;
#> font-weight: initial;
#> padding-top: 0;
#> padding-bottom: 6px;
#> padding-left: 5px;
#> padding-right: 5px;
#> border-top-color: #FFFFFF;
#> border-top-width: 0;
#> }
#>
#> #ggirkzjvyg .gt_bottom_border {
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> }
#>
#> #ggirkzjvyg .gt_col_headings {
#> border-top-style: solid;
#> border-top-width: 2px;
#> border-top-color: #D3D3D3;
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> border-left-style: none;
#> border-left-width: 1px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 1px;
#> border-right-color: #D3D3D3;
#> }
#>
#> #ggirkzjvyg .gt_col_heading {
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
#> font-weight: normal;
#> text-transform: inherit;
#> border-left-style: none;
#> border-left-width: 1px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 1px;
#> border-right-color: #D3D3D3;
#> vertical-align: bottom;
#> padding-top: 5px;
#> padding-bottom: 6px;
#> padding-left: 5px;
#> padding-right: 5px;
#> overflow-x: hidden;
#> }
#>
#> #ggirkzjvyg .gt_column_spanner_outer {
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
#> font-weight: normal;
#> text-transform: inherit;
#> padding-top: 0;
#> padding-bottom: 0;
#> padding-left: 4px;
#> padding-right: 4px;
#> }
#>
#> #ggirkzjvyg .gt_column_spanner_outer:first-child {
#> padding-left: 0;
#> }
#>
#> #ggirkzjvyg .gt_column_spanner_outer:last-child {
#> padding-right: 0;
#> }
#>
#> #ggirkzjvyg .gt_column_spanner {
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> vertical-align: bottom;
#> padding-top: 5px;
#> padding-bottom: 5px;
#> overflow-x: hidden;
#> display: inline-block;
#> width: 100%;
#> }
#>
#> #ggirkzjvyg .gt_group_heading {
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
#> padding-right: 5px;
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
#> font-weight: initial;
#> text-transform: inherit;
#> border-top-style: solid;
#> border-top-width: 2px;
#> border-top-color: #D3D3D3;
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> border-left-style: none;
#> border-left-width: 1px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 1px;
#> border-right-color: #D3D3D3;
#> vertical-align: middle;
#> }
#>
#> #ggirkzjvyg .gt_empty_group_heading {
#> padding: 0.5px;
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
#> font-weight: initial;
#> border-top-style: solid;
#> border-top-width: 2px;
#> border-top-color: #D3D3D3;
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> vertical-align: middle;
#> }
#>
#> #ggirkzjvyg .gt_from_md > :first-child {
#> margin-top: 0;
#> }
#>
#> #ggirkzjvyg .gt_from_md > :last-child {
#> margin-bottom: 0;
#> }
#>
#> #ggirkzjvyg .gt_row {
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
#> padding-right: 5px;
#> margin: 10px;
#> border-top-style: solid;
#> border-top-width: 1px;
#> border-top-color: #D3D3D3;
#> border-left-style: none;
#> border-left-width: 1px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 1px;
#> border-right-color: #D3D3D3;
#> vertical-align: middle;
#> overflow-x: hidden;
#> }
#>
#> #ggirkzjvyg .gt_stub {
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
#> font-weight: initial;
#> text-transform: inherit;
#> border-right-style: solid;
#> border-right-width: 2px;
#> border-right-color: #D3D3D3;
#> padding-left: 5px;
#> padding-right: 5px;
#> }
#>
#> #ggirkzjvyg .gt_stub_row_group {
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
#> font-weight: initial;
#> text-transform: inherit;
#> border-right-style: solid;
#> border-right-width: 2px;
#> border-right-color: #D3D3D3;
#> padding-left: 5px;
#> padding-right: 5px;
#> vertical-align: top;
#> }
#>
#> #ggirkzjvyg .gt_row_group_first td {
#> border-top-width: 2px;
#> }
#>
#> #ggirkzjvyg .gt_summary_row {
#> color: #333333;
#> background-color: #FFFFFF;
#> text-transform: inherit;
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
#> padding-right: 5px;
#> }
#>
#> #ggirkzjvyg .gt_first_summary_row {
#> border-top-style: solid;
#> border-top-color: #D3D3D3;
#> }
#>
#> #ggirkzjvyg .gt_first_summary_row.thick {
#> border-top-width: 2px;
#> }
#>
#> #ggirkzjvyg .gt_last_summary_row {
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
#> padding-right: 5px;
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> }
#>
#> #ggirkzjvyg .gt_grand_summary_row {
#> color: #333333;
#> background-color: #FFFFFF;
#> text-transform: inherit;
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
#> padding-right: 5px;
#> }
#>
#> #ggirkzjvyg .gt_first_grand_summary_row {
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
#> padding-right: 5px;
#> border-top-style: double;
#> border-top-width: 6px;
#> border-top-color: #D3D3D3;
#> }
#>
#> #ggirkzjvyg .gt_striped {
#> background-color: rgba(128, 128, 128, 0.05);
#> }
#>
#> #ggirkzjvyg .gt_table_body {
#> border-top-style: solid;
#> border-top-width: 2px;
#> border-top-color: #D3D3D3;
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> }
#>
#> #ggirkzjvyg .gt_footnotes {
#> color: #333333;
#> background-color: #FFFFFF;
#> border-bottom-style: none;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> border-left-style: none;
#> border-left-width: 2px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 2px;
#> border-right-color: #D3D3D3;
#> }
#>
#> #ggirkzjvyg .gt_footnote {
#> margin: 0px;
#> font-size: 90%;
#> padding-left: 4px;
#> padding-right: 4px;
#> padding-left: 5px;
#> padding-right: 5px;
#> }
#>
#> #ggirkzjvyg .gt_sourcenotes {
#> color: #333333;
#> background-color: #FFFFFF;
#> border-bottom-style: none;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> border-left-style: none;
#> border-left-width: 2px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 2px;
#> border-right-color: #D3D3D3;
#> }
#>
#> #ggirkzjvyg .gt_sourcenote {
#> font-size: 90%;
#> padding-top: 4px;
#> padding-bottom: 4px;
#> padding-left: 5px;
#> padding-right: 5px;
#> }
#>
#> #ggirkzjvyg .gt_left {
#> text-align: left;
#> }
#>
#> #ggirkzjvyg .gt_center {
#> text-align: center;
#> }
#>
#> #ggirkzjvyg .gt_right {
#> text-align: right;
#> font-variant-numeric: tabular-nums;
#> }
#>
#> #ggirkzjvyg .gt_font_normal {
#> font-weight: normal;
#> }
#>
#> #ggirkzjvyg .gt_font_bold {
#> font-weight: bold;
#> }
#>
#> #ggirkzjvyg .gt_font_italic {
#> font-style: italic;
#> }
#>
#> #ggirkzjvyg .gt_super {
#> font-size: 65%;
#> }
#>
#> #ggirkzjvyg .gt_footnote_marks {
#> font-style: italic;
#> font-weight: normal;
#> font-size: 75%;
#> vertical-align: 0.4em;
#> }
#>
#> #ggirkzjvyg .gt_asterisk {
#> font-size: 100%;
#> vertical-align: 0;
#> }
#>
#> #ggirkzjvyg .gt_indent_1 {
#> text-indent: 5px;
#> }
#>
#> #ggirkzjvyg .gt_indent_2 {
#> text-indent: 10px;
#> }
#>
#> #ggirkzjvyg .gt_indent_3 {
#> text-indent: 15px;
#> }
#>
#> #ggirkzjvyg .gt_indent_4 {
#> text-indent: 20px;
#> }
#>
#> #ggirkzjvyg .gt_indent_5 {
#> text-indent: 25px;
#> }
#> </style>
#> <table class="gt_table">
#> <thead class="gt_header">
#> <tr>
#> <td colspan="5" class="gt_heading gt_title gt_font_normal" style>Bound summary for WLR design</td>
#> </tr>
#> <tr>
#> <td colspan="5" class="gt_heading gt_subtitle gt_font_normal gt_bottom_border" style>WLR approximation of ~wHR at bound</td>
#> </tr>
#> </thead>
#> <thead class="gt_col_headings">
#> <tr>
#> <th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="2" colspan="1" scope="col">Bound</th>
#> <th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="2" colspan="1" scope="col">Nominal p<sup class="gt_footnote_marks">1</sup></th>
#> <th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="2" colspan="1" scope="col">~wHR at bound<sup class="gt_footnote_marks">2</sup></th>
#> <th class="gt_center gt_columns_top_border gt_column_spanner_outer" rowspan="1" colspan="2" scope="colgroup">
#> <span class="gt_column_spanner">Cumulative boundary crossing probability</span>
#> </th>
#> </tr>
#> <tr>
#> <th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="1" colspan="1" scope="col">Alternate hypothesis</th>
#> <th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="1" colspan="1" scope="col">Null hypothesis</th>
#> </tr>
#> </thead>
#> <tbody class="gt_table_body">
#> <tr class="gt_group_heading_row">
#> <td colspan="5" class="gt_group_heading">Analysis: 1 Time: 36 N: 471.1 Events: 289 wAHR: 0.68 IF: 1<sup class="gt_footnote_marks">3</sup></td>
#> </tr>
#> <tr class="gt_row_group_first"><td class="gt_row gt_left">Efficacy</td>
#> <td class="gt_row gt_right">0.025</td>
#> <td class="gt_row gt_right">0.7940584</td>
#> <td class="gt_row gt_right">0.9</td>
#> <td class="gt_row gt_right">0.025</td></tr>
#> </tbody>
#>
#> <tfoot class="gt_footnotes">
#> <tr>
#> <td class="gt_footnote" colspan="5"><sup class="gt_footnote_marks">1</sup> One-sided p-value for experimental vs control treatment. Values < 0.5 favor experimental, > 0.5 favor control.</td>
#> </tr>
#> <tr>
#> <td class="gt_footnote" colspan="5"><sup class="gt_footnote_marks">2</sup> Approximate hazard ratio to cross bound.</td>
#> </tr>
#> <tr>
#> <td class="gt_footnote" colspan="5"><sup class="gt_footnote_marks">3</sup> wAHR is the weighted AHR.</td>
#> </tr>
#> </tfoot>
#> </table>
#> </div>
gs_power_wlr() %>%
summary() %>%
as_gt()
#> <div id="xtwqbpvqma" style="overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
#> <style>html {
#> font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', 'Fira Sans', 'Droid Sans', Arial, sans-serif;
#> }
#>
#> #xtwqbpvqma .gt_table {
#> display: table;
#> border-collapse: collapse;
#> margin-left: auto;
#> margin-right: auto;
#> color: #333333;
#> font-size: 16px;
#> font-weight: normal;
#> font-style: normal;
#> background-color: #FFFFFF;
#> width: auto;
#> border-top-style: solid;
#> border-top-width: 2px;
#> border-top-color: #A8A8A8;
#> border-right-style: none;
#> border-right-width: 2px;
#> border-right-color: #D3D3D3;
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #A8A8A8;
#> border-left-style: none;
#> border-left-width: 2px;
#> border-left-color: #D3D3D3;
#> }
#>
#> #xtwqbpvqma .gt_heading {
#> background-color: #FFFFFF;
#> text-align: center;
#> border-bottom-color: #FFFFFF;
#> border-left-style: none;
#> border-left-width: 1px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 1px;
#> border-right-color: #D3D3D3;
#> }
#>
#> #xtwqbpvqma .gt_title {
#> color: #333333;
#> font-size: 125%;
#> font-weight: initial;
#> padding-top: 4px;
#> padding-bottom: 4px;
#> padding-left: 5px;
#> padding-right: 5px;
#> border-bottom-color: #FFFFFF;
#> border-bottom-width: 0;
#> }
#>
#> #xtwqbpvqma .gt_subtitle {
#> color: #333333;
#> font-size: 85%;
#> font-weight: initial;
#> padding-top: 0;
#> padding-bottom: 6px;
#> padding-left: 5px;
#> padding-right: 5px;
#> border-top-color: #FFFFFF;
#> border-top-width: 0;
#> }
#>
#> #xtwqbpvqma .gt_bottom_border {
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> }
#>
#> #xtwqbpvqma .gt_col_headings {
#> border-top-style: solid;
#> border-top-width: 2px;
#> border-top-color: #D3D3D3;
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> border-left-style: none;
#> border-left-width: 1px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 1px;
#> border-right-color: #D3D3D3;
#> }
#>
#> #xtwqbpvqma .gt_col_heading {
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
#> font-weight: normal;
#> text-transform: inherit;
#> border-left-style: none;
#> border-left-width: 1px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 1px;
#> border-right-color: #D3D3D3;
#> vertical-align: bottom;
#> padding-top: 5px;
#> padding-bottom: 6px;
#> padding-left: 5px;
#> padding-right: 5px;
#> overflow-x: hidden;
#> }
#>
#> #xtwqbpvqma .gt_column_spanner_outer {
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
#> font-weight: normal;
#> text-transform: inherit;
#> padding-top: 0;
#> padding-bottom: 0;
#> padding-left: 4px;
#> padding-right: 4px;
#> }
#>
#> #xtwqbpvqma .gt_column_spanner_outer:first-child {
#> padding-left: 0;
#> }
#>
#> #xtwqbpvqma .gt_column_spanner_outer:last-child {
#> padding-right: 0;
#> }
#>
#> #xtwqbpvqma .gt_column_spanner {
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> vertical-align: bottom;
#> padding-top: 5px;
#> padding-bottom: 5px;
#> overflow-x: hidden;
#> display: inline-block;
#> width: 100%;
#> }
#>
#> #xtwqbpvqma .gt_group_heading {
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
#> padding-right: 5px;
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
#> font-weight: initial;
#> text-transform: inherit;
#> border-top-style: solid;
#> border-top-width: 2px;
#> border-top-color: #D3D3D3;
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> border-left-style: none;
#> border-left-width: 1px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 1px;
#> border-right-color: #D3D3D3;
#> vertical-align: middle;
#> }
#>
#> #xtwqbpvqma .gt_empty_group_heading {
#> padding: 0.5px;
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
#> font-weight: initial;
#> border-top-style: solid;
#> border-top-width: 2px;
#> border-top-color: #D3D3D3;
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> vertical-align: middle;
#> }
#>
#> #xtwqbpvqma .gt_from_md > :first-child {
#> margin-top: 0;
#> }
#>
#> #xtwqbpvqma .gt_from_md > :last-child {
#> margin-bottom: 0;
#> }
#>
#> #xtwqbpvqma .gt_row {
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
#> padding-right: 5px;
#> margin: 10px;
#> border-top-style: solid;
#> border-top-width: 1px;
#> border-top-color: #D3D3D3;
#> border-left-style: none;
#> border-left-width: 1px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 1px;
#> border-right-color: #D3D3D3;
#> vertical-align: middle;
#> overflow-x: hidden;
#> }
#>
#> #xtwqbpvqma .gt_stub {
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
#> font-weight: initial;
#> text-transform: inherit;
#> border-right-style: solid;
#> border-right-width: 2px;
#> border-right-color: #D3D3D3;
#> padding-left: 5px;
#> padding-right: 5px;
#> }
#>
#> #xtwqbpvqma .gt_stub_row_group {
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
#> font-weight: initial;
#> text-transform: inherit;
#> border-right-style: solid;
#> border-right-width: 2px;
#> border-right-color: #D3D3D3;
#> padding-left: 5px;
#> padding-right: 5px;
#> vertical-align: top;
#> }
#>
#> #xtwqbpvqma .gt_row_group_first td {
#> border-top-width: 2px;
#> }
#>
#> #xtwqbpvqma .gt_summary_row {
#> color: #333333;
#> background-color: #FFFFFF;
#> text-transform: inherit;
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
#> padding-right: 5px;
#> }
#>
#> #xtwqbpvqma .gt_first_summary_row {
#> border-top-style: solid;
#> border-top-color: #D3D3D3;
#> }
#>
#> #xtwqbpvqma .gt_first_summary_row.thick {
#> border-top-width: 2px;
#> }
#>
#> #xtwqbpvqma .gt_last_summary_row {
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
#> padding-right: 5px;
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> }
#>
#> #xtwqbpvqma .gt_grand_summary_row {
#> color: #333333;
#> background-color: #FFFFFF;
#> text-transform: inherit;
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
#> padding-right: 5px;
#> }
#>
#> #xtwqbpvqma .gt_first_grand_summary_row {
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
#> padding-right: 5px;
#> border-top-style: double;
#> border-top-width: 6px;
#> border-top-color: #D3D3D3;
#> }
#>
#> #xtwqbpvqma .gt_striped {
#> background-color: rgba(128, 128, 128, 0.05);
#> }
#>
#> #xtwqbpvqma .gt_table_body {
#> border-top-style: solid;
#> border-top-width: 2px;
#> border-top-color: #D3D3D3;
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> }
#>
#> #xtwqbpvqma .gt_footnotes {
#> color: #333333;
#> background-color: #FFFFFF;
#> border-bottom-style: none;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> border-left-style: none;
#> border-left-width: 2px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 2px;
#> border-right-color: #D3D3D3;
#> }
#>
#> #xtwqbpvqma .gt_footnote {
#> margin: 0px;
#> font-size: 90%;
#> padding-left: 4px;
#> padding-right: 4px;
#> padding-left: 5px;
#> padding-right: 5px;
#> }
#>
#> #xtwqbpvqma .gt_sourcenotes {
#> color: #333333;
#> background-color: #FFFFFF;
#> border-bottom-style: none;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> border-left-style: none;
#> border-left-width: 2px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 2px;
#> border-right-color: #D3D3D3;
#> }
#>
#> #xtwqbpvqma .gt_sourcenote {
#> font-size: 90%;
#> padding-top: 4px;
#> padding-bottom: 4px;
#> padding-left: 5px;
#> padding-right: 5px;
#> }
#>
#> #xtwqbpvqma .gt_left {
#> text-align: left;
#> }
#>
#> #xtwqbpvqma .gt_center {
#> text-align: center;
#> }
#>
#> #xtwqbpvqma .gt_right {
#> text-align: right;
#> font-variant-numeric: tabular-nums;
#> }
#>
#> #xtwqbpvqma .gt_font_normal {
#> font-weight: normal;
#> }
#>
#> #xtwqbpvqma .gt_font_bold {
#> font-weight: bold;
#> }
#>
#> #xtwqbpvqma .gt_font_italic {
#> font-style: italic;
#> }
#>
#> #xtwqbpvqma .gt_super {
#> font-size: 65%;
#> }
#>
#> #xtwqbpvqma .gt_footnote_marks {
#> font-style: italic;
#> font-weight: normal;
#> font-size: 75%;
#> vertical-align: 0.4em;
#> }
#>
#> #xtwqbpvqma .gt_asterisk {
#> font-size: 100%;
#> vertical-align: 0;
#> }
#>
#> #xtwqbpvqma .gt_indent_1 {
#> text-indent: 5px;
#> }
#>
#> #xtwqbpvqma .gt_indent_2 {
#> text-indent: 10px;
#> }
#>
#> #xtwqbpvqma .gt_indent_3 {
#> text-indent: 15px;
#> }
#>
#> #xtwqbpvqma .gt_indent_4 {
#> text-indent: 20px;
#> }
#>
#> #xtwqbpvqma .gt_indent_5 {
#> text-indent: 25px;
#> }
#> </style>
#> <table class="gt_table">
#> <thead class="gt_header">
#> <tr>
#> <td colspan="5" class="gt_heading gt_title gt_font_normal" style>Bound summary for WLR design</td>
#> </tr>
#> <tr>
#> <td colspan="5" class="gt_heading gt_subtitle gt_font_normal gt_bottom_border" style>WLR approximation of ~wHR at bound</td>
#> </tr>
#> </thead>
#> <thead class="gt_col_headings">
#> <tr>
#> <th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="2" colspan="1" scope="col">Bound</th>
#> <th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="2" colspan="1" scope="col">Nominal p<sup class="gt_footnote_marks">1</sup></th>
#> <th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="2" colspan="1" scope="col">~wHR at bound<sup class="gt_footnote_marks">2</sup></th>
#> <th class="gt_center gt_columns_top_border gt_column_spanner_outer" rowspan="1" colspan="2" scope="colgroup">
#> <span class="gt_column_spanner">Cumulative boundary crossing probability</span>
#> </th>
#> </tr>
#> <tr>
#> <th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="1" colspan="1" scope="col">Alternate hypothesis</th>
#> <th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="1" colspan="1" scope="col">Null hypothesis</th>
#> </tr>
#> </thead>
#> <tbody class="gt_table_body">
#> <tr class="gt_group_heading_row">
#> <td colspan="5" class="gt_group_heading">Analysis: 1 Time: 14.9 N: 108 Events: 30 wAHR: 0.79 IF: 0.6<sup class="gt_footnote_marks">3</sup></td>
#> </tr>
#> <tr class="gt_row_group_first"><td class="gt_row gt_left">Futility</td>
#> <td class="gt_row gt_right">0.9000</td>
#> <td class="gt_row gt_right">1.5967279</td>
#> <td class="gt_row gt_right">0.0268</td>
#> <td class="gt_row gt_right">0.1000</td></tr>
#> <tr><td class="gt_row gt_left">Efficacy</td>
#> <td class="gt_row gt_right">0.0038</td>
#> <td class="gt_row gt_right">0.3774014</td>
#> <td class="gt_row gt_right">0.0221</td>
#> <td class="gt_row gt_right">0.0038</td></tr>
#> <tr class="gt_group_heading_row">
#> <td colspan="5" class="gt_group_heading">Analysis: 2 Time: 19.2 N: 108 Events: 40 wAHR: 0.75 IF: 0.8<sup class="gt_footnote_marks">3</sup></td>
#> </tr>
#> <tr class="gt_row_group_first"><td class="gt_row gt_left">Futility</td>
#> <td class="gt_row gt_right">1.0000</td>
#> <td class="gt_row gt_right">Inf</td>
#> <td class="gt_row gt_right">0.0268</td>
#> <td class="gt_row gt_right">0.1000</td></tr>
#> <tr><td class="gt_row gt_left">Efficacy</td>
#> <td class="gt_row gt_right">0.0110</td>
#> <td class="gt_row gt_right">0.4849272</td>
#> <td class="gt_row gt_right">0.0889</td>
#> <td class="gt_row gt_right">0.0122</td></tr>
#> <tr class="gt_group_heading_row">
#> <td colspan="5" class="gt_group_heading">Analysis: 3 Time: 24.5 N: 108 Events: 50 wAHR: 0.71 IF: 1<sup class="gt_footnote_marks">3</sup></td>
#> </tr>
#> <tr class="gt_row_group_first"><td class="gt_row gt_left">Futility</td>
#> <td class="gt_row gt_right">1.0000</td>
#> <td class="gt_row gt_right">Inf</td>
#> <td class="gt_row gt_right">0.0268</td>
#> <td class="gt_row gt_right">0.1000</td></tr>
#> <tr><td class="gt_row gt_left">Efficacy</td>
#> <td class="gt_row gt_right">0.0211</td>
#> <td class="gt_row gt_right">0.5630599</td>
#> <td class="gt_row gt_right">0.2071</td>
#> <td class="gt_row gt_right">0.0250</td></tr>
#> </tbody>
#>
#> <tfoot class="gt_footnotes">
#> <tr>
#> <td class="gt_footnote" colspan="5"><sup class="gt_footnote_marks">1</sup> One-sided p-value for experimental vs control treatment. Values < 0.5 favor experimental, > 0.5 favor control.</td>
#> </tr>
#> <tr>
#> <td class="gt_footnote" colspan="5"><sup class="gt_footnote_marks">2</sup> Approximate hazard ratio to cross bound.</td>
#> </tr>
#> <tr>
#> <td class="gt_footnote" colspan="5"><sup class="gt_footnote_marks">3</sup> wAHR is the weighted AHR.</td>
#> </tr>
#> </tfoot>
#> </table>
#> </div>
if (FALSE) {
gs_design_combo() %>%
summary() %>%
as_gt()
gs_power_combo() %>%
summary() %>%
as_gt()
gs_design_rd() %>%
summary() %>%
as_gt()
gs_power_rd() %>%
summary() %>%
as_gt()
}
# usage of title = ..., subtitle = ...
# to edit the title/subtitle
gs_power_wlr() %>%
summary() %>%
as_gt(
title = "Bound Summary",
subtitle = "from gs_power_wlr")
#> <div id="epqrxdmrnm" style="overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
#> <style>html {
#> font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', 'Fira Sans', 'Droid Sans', Arial, sans-serif;
#> }
#>
#> #epqrxdmrnm .gt_table {
#> display: table;
#> border-collapse: collapse;
#> margin-left: auto;
#> margin-right: auto;
#> color: #333333;
#> font-size: 16px;
#> font-weight: normal;
#> font-style: normal;
#> background-color: #FFFFFF;
#> width: auto;
#> border-top-style: solid;
#> border-top-width: 2px;
#> border-top-color: #A8A8A8;
#> border-right-style: none;
#> border-right-width: 2px;
#> border-right-color: #D3D3D3;
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #A8A8A8;
#> border-left-style: none;
#> border-left-width: 2px;
#> border-left-color: #D3D3D3;
#> }
#>
#> #epqrxdmrnm .gt_heading {
#> background-color: #FFFFFF;
#> text-align: center;
#> border-bottom-color: #FFFFFF;
#> border-left-style: none;
#> border-left-width: 1px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 1px;
#> border-right-color: #D3D3D3;
#> }
#>
#> #epqrxdmrnm .gt_title {
#> color: #333333;
#> font-size: 125%;
#> font-weight: initial;
#> padding-top: 4px;
#> padding-bottom: 4px;
#> padding-left: 5px;
#> padding-right: 5px;
#> border-bottom-color: #FFFFFF;
#> border-bottom-width: 0;
#> }
#>
#> #epqrxdmrnm .gt_subtitle {
#> color: #333333;
#> font-size: 85%;
#> font-weight: initial;
#> padding-top: 0;
#> padding-bottom: 6px;
#> padding-left: 5px;
#> padding-right: 5px;
#> border-top-color: #FFFFFF;
#> border-top-width: 0;
#> }
#>
#> #epqrxdmrnm .gt_bottom_border {
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> }
#>
#> #epqrxdmrnm .gt_col_headings {
#> border-top-style: solid;
#> border-top-width: 2px;
#> border-top-color: #D3D3D3;
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> border-left-style: none;
#> border-left-width: 1px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 1px;
#> border-right-color: #D3D3D3;
#> }
#>
#> #epqrxdmrnm .gt_col_heading {
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
#> font-weight: normal;
#> text-transform: inherit;
#> border-left-style: none;
#> border-left-width: 1px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 1px;
#> border-right-color: #D3D3D3;
#> vertical-align: bottom;
#> padding-top: 5px;
#> padding-bottom: 6px;
#> padding-left: 5px;
#> padding-right: 5px;
#> overflow-x: hidden;
#> }
#>
#> #epqrxdmrnm .gt_column_spanner_outer {
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
#> font-weight: normal;
#> text-transform: inherit;
#> padding-top: 0;
#> padding-bottom: 0;
#> padding-left: 4px;
#> padding-right: 4px;
#> }
#>
#> #epqrxdmrnm .gt_column_spanner_outer:first-child {
#> padding-left: 0;
#> }
#>
#> #epqrxdmrnm .gt_column_spanner_outer:last-child {
#> padding-right: 0;
#> }
#>
#> #epqrxdmrnm .gt_column_spanner {
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> vertical-align: bottom;
#> padding-top: 5px;
#> padding-bottom: 5px;
#> overflow-x: hidden;
#> display: inline-block;
#> width: 100%;
#> }
#>
#> #epqrxdmrnm .gt_group_heading {
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
#> padding-right: 5px;
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
#> font-weight: initial;
#> text-transform: inherit;
#> border-top-style: solid;
#> border-top-width: 2px;
#> border-top-color: #D3D3D3;
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> border-left-style: none;
#> border-left-width: 1px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 1px;
#> border-right-color: #D3D3D3;
#> vertical-align: middle;
#> }
#>
#> #epqrxdmrnm .gt_empty_group_heading {
#> padding: 0.5px;
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
#> font-weight: initial;
#> border-top-style: solid;
#> border-top-width: 2px;
#> border-top-color: #D3D3D3;
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> vertical-align: middle;
#> }
#>
#> #epqrxdmrnm .gt_from_md > :first-child {
#> margin-top: 0;
#> }
#>
#> #epqrxdmrnm .gt_from_md > :last-child {
#> margin-bottom: 0;
#> }
#>
#> #epqrxdmrnm .gt_row {
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
#> padding-right: 5px;
#> margin: 10px;
#> border-top-style: solid;
#> border-top-width: 1px;
#> border-top-color: #D3D3D3;
#> border-left-style: none;
#> border-left-width: 1px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 1px;
#> border-right-color: #D3D3D3;
#> vertical-align: middle;
#> overflow-x: hidden;
#> }
#>
#> #epqrxdmrnm .gt_stub {
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
#> font-weight: initial;
#> text-transform: inherit;
#> border-right-style: solid;
#> border-right-width: 2px;
#> border-right-color: #D3D3D3;
#> padding-left: 5px;
#> padding-right: 5px;
#> }
#>
#> #epqrxdmrnm .gt_stub_row_group {
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
#> font-weight: initial;
#> text-transform: inherit;
#> border-right-style: solid;
#> border-right-width: 2px;
#> border-right-color: #D3D3D3;
#> padding-left: 5px;
#> padding-right: 5px;
#> vertical-align: top;
#> }
#>
#> #epqrxdmrnm .gt_row_group_first td {
#> border-top-width: 2px;
#> }
#>
#> #epqrxdmrnm .gt_summary_row {
#> color: #333333;
#> background-color: #FFFFFF;
#> text-transform: inherit;
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
#> padding-right: 5px;
#> }
#>
#> #epqrxdmrnm .gt_first_summary_row {
#> border-top-style: solid;
#> border-top-color: #D3D3D3;
#> }
#>
#> #epqrxdmrnm .gt_first_summary_row.thick {
#> border-top-width: 2px;
#> }
#>
#> #epqrxdmrnm .gt_last_summary_row {
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
#> padding-right: 5px;
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> }
#>
#> #epqrxdmrnm .gt_grand_summary_row {
#> color: #333333;
#> background-color: #FFFFFF;
#> text-transform: inherit;
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
#> padding-right: 5px;
#> }
#>
#> #epqrxdmrnm .gt_first_grand_summary_row {
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
#> padding-right: 5px;
#> border-top-style: double;
#> border-top-width: 6px;
#> border-top-color: #D3D3D3;
#> }
#>
#> #epqrxdmrnm .gt_striped {
#> background-color: rgba(128, 128, 128, 0.05);
#> }
#>
#> #epqrxdmrnm .gt_table_body {
#> border-top-style: solid;
#> border-top-width: 2px;
#> border-top-color: #D3D3D3;
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> }
#>
#> #epqrxdmrnm .gt_footnotes {
#> color: #333333;
#> background-color: #FFFFFF;
#> border-bottom-style: none;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> border-left-style: none;
#> border-left-width: 2px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 2px;
#> border-right-color: #D3D3D3;
#> }
#>
#> #epqrxdmrnm .gt_footnote {
#> margin: 0px;
#> font-size: 90%;
#> padding-left: 4px;
#> padding-right: 4px;
#> padding-left: 5px;
#> padding-right: 5px;
#> }
#>
#> #epqrxdmrnm .gt_sourcenotes {
#> color: #333333;
#> background-color: #FFFFFF;
#> border-bottom-style: none;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> border-left-style: none;
#> border-left-width: 2px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 2px;
#> border-right-color: #D3D3D3;
#> }
#>
#> #epqrxdmrnm .gt_sourcenote {
#> font-size: 90%;
#> padding-top: 4px;
#> padding-bottom: 4px;
#> padding-left: 5px;
#> padding-right: 5px;
#> }
#>
#> #epqrxdmrnm .gt_left {
#> text-align: left;
#> }
#>
#> #epqrxdmrnm .gt_center {
#> text-align: center;
#> }
#>
#> #epqrxdmrnm .gt_right {
#> text-align: right;
#> font-variant-numeric: tabular-nums;
#> }
#>
#> #epqrxdmrnm .gt_font_normal {
#> font-weight: normal;
#> }
#>
#> #epqrxdmrnm .gt_font_bold {
#> font-weight: bold;
#> }
#>
#> #epqrxdmrnm .gt_font_italic {
#> font-style: italic;
#> }
#>
#> #epqrxdmrnm .gt_super {
#> font-size: 65%;
#> }
#>
#> #epqrxdmrnm .gt_footnote_marks {
#> font-style: italic;
#> font-weight: normal;
#> font-size: 75%;
#> vertical-align: 0.4em;
#> }
#>
#> #epqrxdmrnm .gt_asterisk {
#> font-size: 100%;
#> vertical-align: 0;
#> }
#>
#> #epqrxdmrnm .gt_indent_1 {
#> text-indent: 5px;
#> }
#>
#> #epqrxdmrnm .gt_indent_2 {
#> text-indent: 10px;
#> }
#>
#> #epqrxdmrnm .gt_indent_3 {
#> text-indent: 15px;
#> }
#>
#> #epqrxdmrnm .gt_indent_4 {
#> text-indent: 20px;
#> }
#>
#> #epqrxdmrnm .gt_indent_5 {
#> text-indent: 25px;
#> }
#> </style>
#> <table class="gt_table">
#> <thead class="gt_header">
#> <tr>
#> <td colspan="5" class="gt_heading gt_title gt_font_normal" style>Bound Summary</td>
#> </tr>
#> <tr>
#> <td colspan="5" class="gt_heading gt_subtitle gt_font_normal gt_bottom_border" style>from gs_power_wlr</td>
#> </tr>
#> </thead>
#> <thead class="gt_col_headings">
#> <tr>
#> <th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="2" colspan="1" scope="col">Bound</th>
#> <th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="2" colspan="1" scope="col">Nominal p<sup class="gt_footnote_marks">1</sup></th>
#> <th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="2" colspan="1" scope="col">~wHR at bound<sup class="gt_footnote_marks">2</sup></th>
#> <th class="gt_center gt_columns_top_border gt_column_spanner_outer" rowspan="1" colspan="2" scope="colgroup">
#> <span class="gt_column_spanner">Cumulative boundary crossing probability</span>
#> </th>
#> </tr>
#> <tr>
#> <th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="1" colspan="1" scope="col">Alternate hypothesis</th>
#> <th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="1" colspan="1" scope="col">Null hypothesis</th>
#> </tr>
#> </thead>
#> <tbody class="gt_table_body">
#> <tr class="gt_group_heading_row">
#> <td colspan="5" class="gt_group_heading">Analysis: 1 Time: 14.9 N: 108 Events: 30 wAHR: 0.79 IF: 0.6<sup class="gt_footnote_marks">3</sup></td>
#> </tr>
#> <tr class="gt_row_group_first"><td class="gt_row gt_left">Futility</td>
#> <td class="gt_row gt_right">0.9000</td>
#> <td class="gt_row gt_right">1.5967279</td>
#> <td class="gt_row gt_right">0.0268</td>
#> <td class="gt_row gt_right">0.1000</td></tr>
#> <tr><td class="gt_row gt_left">Efficacy</td>
#> <td class="gt_row gt_right">0.0038</td>
#> <td class="gt_row gt_right">0.3774014</td>
#> <td class="gt_row gt_right">0.0221</td>
#> <td class="gt_row gt_right">0.0038</td></tr>
#> <tr class="gt_group_heading_row">
#> <td colspan="5" class="gt_group_heading">Analysis: 2 Time: 19.2 N: 108 Events: 40 wAHR: 0.75 IF: 0.8<sup class="gt_footnote_marks">3</sup></td>
#> </tr>
#> <tr class="gt_row_group_first"><td class="gt_row gt_left">Futility</td>
#> <td class="gt_row gt_right">1.0000</td>
#> <td class="gt_row gt_right">Inf</td>
#> <td class="gt_row gt_right">0.0268</td>
#> <td class="gt_row gt_right">0.1000</td></tr>
#> <tr><td class="gt_row gt_left">Efficacy</td>
#> <td class="gt_row gt_right">0.0110</td>
#> <td class="gt_row gt_right">0.4849272</td>
#> <td class="gt_row gt_right">0.0889</td>
#> <td class="gt_row gt_right">0.0122</td></tr>
#> <tr class="gt_group_heading_row">
#> <td colspan="5" class="gt_group_heading">Analysis: 3 Time: 24.5 N: 108 Events: 50 wAHR: 0.71 IF: 1<sup class="gt_footnote_marks">3</sup></td>
#> </tr>
#> <tr class="gt_row_group_first"><td class="gt_row gt_left">Futility</td>
#> <td class="gt_row gt_right">1.0000</td>
#> <td class="gt_row gt_right">Inf</td>
#> <td class="gt_row gt_right">0.0268</td>
#> <td class="gt_row gt_right">0.1000</td></tr>
#> <tr><td class="gt_row gt_left">Efficacy</td>
#> <td class="gt_row gt_right">0.0211</td>
#> <td class="gt_row gt_right">0.5630599</td>
#> <td class="gt_row gt_right">0.2071</td>
#> <td class="gt_row gt_right">0.0250</td></tr>
#> </tbody>
#>
#> <tfoot class="gt_footnotes">
#> <tr>
#> <td class="gt_footnote" colspan="5"><sup class="gt_footnote_marks">1</sup> One-sided p-value for experimental vs control treatment. Values < 0.5 favor experimental, > 0.5 favor control.</td>
#> </tr>
#> <tr>
#> <td class="gt_footnote" colspan="5"><sup class="gt_footnote_marks">2</sup> Approximate hazard ratio to cross bound.</td>
#> </tr>
#> <tr>
#> <td class="gt_footnote" colspan="5"><sup class="gt_footnote_marks">3</sup> wAHR is the weighted AHR.</td>
#> </tr>
#> </tfoot>
#> </table>
#> </div>
# usage of colname_spanner = ..., colname_spannersub = ...
# to edit the spanner and its sub-spanner
gs_power_wlr() %>%
summary() %>%
as_gt(
colname_spanner = "Cumulative probability to cross boundaries",
colname_spannersub = c("under H1", "under H0"))
#> <div id="cryqcmfgyb" style="overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
#> <style>html {
#> font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', 'Fira Sans', 'Droid Sans', Arial, sans-serif;
#> }
#>
#> #cryqcmfgyb .gt_table {
#> display: table;
#> border-collapse: collapse;
#> margin-left: auto;
#> margin-right: auto;
#> color: #333333;
#> font-size: 16px;
#> font-weight: normal;
#> font-style: normal;
#> background-color: #FFFFFF;
#> width: auto;
#> border-top-style: solid;
#> border-top-width: 2px;
#> border-top-color: #A8A8A8;
#> border-right-style: none;
#> border-right-width: 2px;
#> border-right-color: #D3D3D3;
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #A8A8A8;
#> border-left-style: none;
#> border-left-width: 2px;
#> border-left-color: #D3D3D3;
#> }
#>
#> #cryqcmfgyb .gt_heading {
#> background-color: #FFFFFF;
#> text-align: center;
#> border-bottom-color: #FFFFFF;
#> border-left-style: none;
#> border-left-width: 1px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 1px;
#> border-right-color: #D3D3D3;
#> }
#>
#> #cryqcmfgyb .gt_title {
#> color: #333333;
#> font-size: 125%;
#> font-weight: initial;
#> padding-top: 4px;
#> padding-bottom: 4px;
#> padding-left: 5px;
#> padding-right: 5px;
#> border-bottom-color: #FFFFFF;
#> border-bottom-width: 0;
#> }
#>
#> #cryqcmfgyb .gt_subtitle {
#> color: #333333;
#> font-size: 85%;
#> font-weight: initial;
#> padding-top: 0;
#> padding-bottom: 6px;
#> padding-left: 5px;
#> padding-right: 5px;
#> border-top-color: #FFFFFF;
#> border-top-width: 0;
#> }
#>
#> #cryqcmfgyb .gt_bottom_border {
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> }
#>
#> #cryqcmfgyb .gt_col_headings {
#> border-top-style: solid;
#> border-top-width: 2px;
#> border-top-color: #D3D3D3;
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> border-left-style: none;
#> border-left-width: 1px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 1px;
#> border-right-color: #D3D3D3;
#> }
#>
#> #cryqcmfgyb .gt_col_heading {
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
#> font-weight: normal;
#> text-transform: inherit;
#> border-left-style: none;
#> border-left-width: 1px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 1px;
#> border-right-color: #D3D3D3;
#> vertical-align: bottom;
#> padding-top: 5px;
#> padding-bottom: 6px;
#> padding-left: 5px;
#> padding-right: 5px;
#> overflow-x: hidden;
#> }
#>
#> #cryqcmfgyb .gt_column_spanner_outer {
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
#> font-weight: normal;
#> text-transform: inherit;
#> padding-top: 0;
#> padding-bottom: 0;
#> padding-left: 4px;
#> padding-right: 4px;
#> }
#>
#> #cryqcmfgyb .gt_column_spanner_outer:first-child {
#> padding-left: 0;
#> }
#>
#> #cryqcmfgyb .gt_column_spanner_outer:last-child {
#> padding-right: 0;
#> }
#>
#> #cryqcmfgyb .gt_column_spanner {
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> vertical-align: bottom;
#> padding-top: 5px;
#> padding-bottom: 5px;
#> overflow-x: hidden;
#> display: inline-block;
#> width: 100%;
#> }
#>
#> #cryqcmfgyb .gt_group_heading {
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
#> padding-right: 5px;
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
#> font-weight: initial;
#> text-transform: inherit;
#> border-top-style: solid;
#> border-top-width: 2px;
#> border-top-color: #D3D3D3;
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> border-left-style: none;
#> border-left-width: 1px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 1px;
#> border-right-color: #D3D3D3;
#> vertical-align: middle;
#> }
#>
#> #cryqcmfgyb .gt_empty_group_heading {
#> padding: 0.5px;
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
#> font-weight: initial;
#> border-top-style: solid;
#> border-top-width: 2px;
#> border-top-color: #D3D3D3;
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> vertical-align: middle;
#> }
#>
#> #cryqcmfgyb .gt_from_md > :first-child {
#> margin-top: 0;
#> }
#>
#> #cryqcmfgyb .gt_from_md > :last-child {
#> margin-bottom: 0;
#> }
#>
#> #cryqcmfgyb .gt_row {
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
#> padding-right: 5px;
#> margin: 10px;
#> border-top-style: solid;
#> border-top-width: 1px;
#> border-top-color: #D3D3D3;
#> border-left-style: none;
#> border-left-width: 1px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 1px;
#> border-right-color: #D3D3D3;
#> vertical-align: middle;
#> overflow-x: hidden;
#> }
#>
#> #cryqcmfgyb .gt_stub {
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
#> font-weight: initial;
#> text-transform: inherit;
#> border-right-style: solid;
#> border-right-width: 2px;
#> border-right-color: #D3D3D3;
#> padding-left: 5px;
#> padding-right: 5px;
#> }
#>
#> #cryqcmfgyb .gt_stub_row_group {
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
#> font-weight: initial;
#> text-transform: inherit;
#> border-right-style: solid;
#> border-right-width: 2px;
#> border-right-color: #D3D3D3;
#> padding-left: 5px;
#> padding-right: 5px;
#> vertical-align: top;
#> }
#>
#> #cryqcmfgyb .gt_row_group_first td {
#> border-top-width: 2px;
#> }
#>
#> #cryqcmfgyb .gt_summary_row {
#> color: #333333;
#> background-color: #FFFFFF;
#> text-transform: inherit;
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
#> padding-right: 5px;
#> }
#>
#> #cryqcmfgyb .gt_first_summary_row {
#> border-top-style: solid;
#> border-top-color: #D3D3D3;
#> }
#>
#> #cryqcmfgyb .gt_first_summary_row.thick {
#> border-top-width: 2px;
#> }
#>
#> #cryqcmfgyb .gt_last_summary_row {
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
#> padding-right: 5px;
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> }
#>
#> #cryqcmfgyb .gt_grand_summary_row {
#> color: #333333;
#> background-color: #FFFFFF;
#> text-transform: inherit;
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
#> padding-right: 5px;
#> }
#>
#> #cryqcmfgyb .gt_first_grand_summary_row {
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
#> padding-right: 5px;
#> border-top-style: double;
#> border-top-width: 6px;
#> border-top-color: #D3D3D3;
#> }
#>
#> #cryqcmfgyb .gt_striped {
#> background-color: rgba(128, 128, 128, 0.05);
#> }
#>
#> #cryqcmfgyb .gt_table_body {
#> border-top-style: solid;
#> border-top-width: 2px;
#> border-top-color: #D3D3D3;
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> }
#>
#> #cryqcmfgyb .gt_footnotes {
#> color: #333333;
#> background-color: #FFFFFF;
#> border-bottom-style: none;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> border-left-style: none;
#> border-left-width: 2px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 2px;
#> border-right-color: #D3D3D3;
#> }
#>
#> #cryqcmfgyb .gt_footnote {
#> margin: 0px;
#> font-size: 90%;
#> padding-left: 4px;
#> padding-right: 4px;
#> padding-left: 5px;
#> padding-right: 5px;
#> }
#>
#> #cryqcmfgyb .gt_sourcenotes {
#> color: #333333;
#> background-color: #FFFFFF;
#> border-bottom-style: none;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> border-left-style: none;
#> border-left-width: 2px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 2px;
#> border-right-color: #D3D3D3;
#> }
#>
#> #cryqcmfgyb .gt_sourcenote {
#> font-size: 90%;
#> padding-top: 4px;
#> padding-bottom: 4px;
#> padding-left: 5px;
#> padding-right: 5px;
#> }
#>
#> #cryqcmfgyb .gt_left {
#> text-align: left;
#> }
#>
#> #cryqcmfgyb .gt_center {
#> text-align: center;
#> }
#>
#> #cryqcmfgyb .gt_right {
#> text-align: right;
#> font-variant-numeric: tabular-nums;
#> }
#>
#> #cryqcmfgyb .gt_font_normal {
#> font-weight: normal;
#> }
#>
#> #cryqcmfgyb .gt_font_bold {
#> font-weight: bold;
#> }
#>
#> #cryqcmfgyb .gt_font_italic {
#> font-style: italic;
#> }
#>
#> #cryqcmfgyb .gt_super {
#> font-size: 65%;
#> }
#>
#> #cryqcmfgyb .gt_footnote_marks {
#> font-style: italic;
#> font-weight: normal;
#> font-size: 75%;
#> vertical-align: 0.4em;
#> }
#>
#> #cryqcmfgyb .gt_asterisk {
#> font-size: 100%;
#> vertical-align: 0;
#> }
#>
#> #cryqcmfgyb .gt_indent_1 {
#> text-indent: 5px;
#> }
#>
#> #cryqcmfgyb .gt_indent_2 {
#> text-indent: 10px;
#> }
#>
#> #cryqcmfgyb .gt_indent_3 {
#> text-indent: 15px;
#> }
#>
#> #cryqcmfgyb .gt_indent_4 {
#> text-indent: 20px;
#> }
#>
#> #cryqcmfgyb .gt_indent_5 {
#> text-indent: 25px;
#> }
#> </style>
#> <table class="gt_table">
#> <thead class="gt_header">
#> <tr>
#> <td colspan="5" class="gt_heading gt_title gt_font_normal" style>Bound summary for WLR design</td>
#> </tr>
#> <tr>
#> <td colspan="5" class="gt_heading gt_subtitle gt_font_normal gt_bottom_border" style>WLR approximation of ~wHR at bound</td>
#> </tr>
#> </thead>
#> <thead class="gt_col_headings">
#> <tr>
#> <th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="2" colspan="1" scope="col">Bound</th>
#> <th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="2" colspan="1" scope="col">Nominal p<sup class="gt_footnote_marks">1</sup></th>
#> <th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="2" colspan="1" scope="col">~wHR at bound<sup class="gt_footnote_marks">2</sup></th>
#> <th class="gt_center gt_columns_top_border gt_column_spanner_outer" rowspan="1" colspan="2" scope="colgroup">
#> <span class="gt_column_spanner">Cumulative probability to cross boundaries</span>
#> </th>
#> </tr>
#> <tr>
#> <th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="1" colspan="1" scope="col">under H1</th>
#> <th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="1" colspan="1" scope="col">under H0</th>
#> </tr>
#> </thead>
#> <tbody class="gt_table_body">
#> <tr class="gt_group_heading_row">
#> <td colspan="5" class="gt_group_heading">Analysis: 1 Time: 14.9 N: 108 Events: 30 wAHR: 0.79 IF: 0.6<sup class="gt_footnote_marks">3</sup></td>
#> </tr>
#> <tr class="gt_row_group_first"><td class="gt_row gt_left">Futility</td>
#> <td class="gt_row gt_right">0.9000</td>
#> <td class="gt_row gt_right">1.5967279</td>
#> <td class="gt_row gt_right">0.0268</td>
#> <td class="gt_row gt_right">0.1000</td></tr>
#> <tr><td class="gt_row gt_left">Efficacy</td>
#> <td class="gt_row gt_right">0.0038</td>
#> <td class="gt_row gt_right">0.3774014</td>
#> <td class="gt_row gt_right">0.0221</td>
#> <td class="gt_row gt_right">0.0038</td></tr>
#> <tr class="gt_group_heading_row">
#> <td colspan="5" class="gt_group_heading">Analysis: 2 Time: 19.2 N: 108 Events: 40 wAHR: 0.75 IF: 0.8<sup class="gt_footnote_marks">3</sup></td>
#> </tr>
#> <tr class="gt_row_group_first"><td class="gt_row gt_left">Futility</td>
#> <td class="gt_row gt_right">1.0000</td>
#> <td class="gt_row gt_right">Inf</td>
#> <td class="gt_row gt_right">0.0268</td>
#> <td class="gt_row gt_right">0.1000</td></tr>
#> <tr><td class="gt_row gt_left">Efficacy</td>
#> <td class="gt_row gt_right">0.0110</td>
#> <td class="gt_row gt_right">0.4849272</td>
#> <td class="gt_row gt_right">0.0889</td>
#> <td class="gt_row gt_right">0.0122</td></tr>
#> <tr class="gt_group_heading_row">
#> <td colspan="5" class="gt_group_heading">Analysis: 3 Time: 24.5 N: 108 Events: 50 wAHR: 0.71 IF: 1<sup class="gt_footnote_marks">3</sup></td>
#> </tr>
#> <tr class="gt_row_group_first"><td class="gt_row gt_left">Futility</td>
#> <td class="gt_row gt_right">1.0000</td>
#> <td class="gt_row gt_right">Inf</td>
#> <td class="gt_row gt_right">0.0268</td>
#> <td class="gt_row gt_right">0.1000</td></tr>
#> <tr><td class="gt_row gt_left">Efficacy</td>
#> <td class="gt_row gt_right">0.0211</td>
#> <td class="gt_row gt_right">0.5630599</td>
#> <td class="gt_row gt_right">0.2071</td>
#> <td class="gt_row gt_right">0.0250</td></tr>
#> </tbody>
#>
#> <tfoot class="gt_footnotes">
#> <tr>
#> <td class="gt_footnote" colspan="5"><sup class="gt_footnote_marks">1</sup> One-sided p-value for experimental vs control treatment. Values < 0.5 favor experimental, > 0.5 favor control.</td>
#> </tr>
#> <tr>
#> <td class="gt_footnote" colspan="5"><sup class="gt_footnote_marks">2</sup> Approximate hazard ratio to cross bound.</td>
#> </tr>
#> <tr>
#> <td class="gt_footnote" colspan="5"><sup class="gt_footnote_marks">3</sup> wAHR is the weighted AHR.</td>
#> </tr>
#> </tfoot>
#> </table>
#> </div>
# usage of footnote = ...
# to edit the footnote
gs_power_wlr() %>%
summary() %>%
as_gt(
footnote = list(content = c("approximate weighted hazard ratio to cross bound.",
"wAHR is the weighted AHR.",
"the crossing probability.",
"this table is generated by gs_power_wlr."),
location = c("~wHR at bound", NA, NA, NA),
attr = c("colname", "analysis", "spanner", "title")))
#> <div id="yktlvusyro" style="overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
#> <style>html {
#> font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', 'Fira Sans', 'Droid Sans', Arial, sans-serif;
#> }
#>
#> #yktlvusyro .gt_table {
#> display: table;
#> border-collapse: collapse;
#> margin-left: auto;
#> margin-right: auto;
#> color: #333333;
#> font-size: 16px;
#> font-weight: normal;
#> font-style: normal;
#> background-color: #FFFFFF;
#> width: auto;
#> border-top-style: solid;
#> border-top-width: 2px;
#> border-top-color: #A8A8A8;
#> border-right-style: none;
#> border-right-width: 2px;
#> border-right-color: #D3D3D3;
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #A8A8A8;
#> border-left-style: none;
#> border-left-width: 2px;
#> border-left-color: #D3D3D3;
#> }
#>
#> #yktlvusyro .gt_heading {
#> background-color: #FFFFFF;
#> text-align: center;
#> border-bottom-color: #FFFFFF;
#> border-left-style: none;
#> border-left-width: 1px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 1px;
#> border-right-color: #D3D3D3;
#> }
#>
#> #yktlvusyro .gt_title {
#> color: #333333;
#> font-size: 125%;
#> font-weight: initial;
#> padding-top: 4px;
#> padding-bottom: 4px;
#> padding-left: 5px;
#> padding-right: 5px;
#> border-bottom-color: #FFFFFF;
#> border-bottom-width: 0;
#> }
#>
#> #yktlvusyro .gt_subtitle {
#> color: #333333;
#> font-size: 85%;
#> font-weight: initial;
#> padding-top: 0;
#> padding-bottom: 6px;
#> padding-left: 5px;
#> padding-right: 5px;
#> border-top-color: #FFFFFF;
#> border-top-width: 0;
#> }
#>
#> #yktlvusyro .gt_bottom_border {
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> }
#>
#> #yktlvusyro .gt_col_headings {
#> border-top-style: solid;
#> border-top-width: 2px;
#> border-top-color: #D3D3D3;
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> border-left-style: none;
#> border-left-width: 1px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 1px;
#> border-right-color: #D3D3D3;
#> }
#>
#> #yktlvusyro .gt_col_heading {
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
#> font-weight: normal;
#> text-transform: inherit;
#> border-left-style: none;
#> border-left-width: 1px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 1px;
#> border-right-color: #D3D3D3;
#> vertical-align: bottom;
#> padding-top: 5px;
#> padding-bottom: 6px;
#> padding-left: 5px;
#> padding-right: 5px;
#> overflow-x: hidden;
#> }
#>
#> #yktlvusyro .gt_column_spanner_outer {
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
#> font-weight: normal;
#> text-transform: inherit;
#> padding-top: 0;
#> padding-bottom: 0;
#> padding-left: 4px;
#> padding-right: 4px;
#> }
#>
#> #yktlvusyro .gt_column_spanner_outer:first-child {
#> padding-left: 0;
#> }
#>
#> #yktlvusyro .gt_column_spanner_outer:last-child {
#> padding-right: 0;
#> }
#>
#> #yktlvusyro .gt_column_spanner {
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> vertical-align: bottom;
#> padding-top: 5px;
#> padding-bottom: 5px;
#> overflow-x: hidden;
#> display: inline-block;
#> width: 100%;
#> }
#>
#> #yktlvusyro .gt_group_heading {
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
#> padding-right: 5px;
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
#> font-weight: initial;
#> text-transform: inherit;
#> border-top-style: solid;
#> border-top-width: 2px;
#> border-top-color: #D3D3D3;
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> border-left-style: none;
#> border-left-width: 1px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 1px;
#> border-right-color: #D3D3D3;
#> vertical-align: middle;
#> }
#>
#> #yktlvusyro .gt_empty_group_heading {
#> padding: 0.5px;
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
#> font-weight: initial;
#> border-top-style: solid;
#> border-top-width: 2px;
#> border-top-color: #D3D3D3;
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> vertical-align: middle;
#> }
#>
#> #yktlvusyro .gt_from_md > :first-child {
#> margin-top: 0;
#> }
#>
#> #yktlvusyro .gt_from_md > :last-child {
#> margin-bottom: 0;
#> }
#>
#> #yktlvusyro .gt_row {
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
#> padding-right: 5px;
#> margin: 10px;
#> border-top-style: solid;
#> border-top-width: 1px;
#> border-top-color: #D3D3D3;
#> border-left-style: none;
#> border-left-width: 1px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 1px;
#> border-right-color: #D3D3D3;
#> vertical-align: middle;
#> overflow-x: hidden;
#> }
#>
#> #yktlvusyro .gt_stub {
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
#> font-weight: initial;
#> text-transform: inherit;
#> border-right-style: solid;
#> border-right-width: 2px;
#> border-right-color: #D3D3D3;
#> padding-left: 5px;
#> padding-right: 5px;
#> }
#>
#> #yktlvusyro .gt_stub_row_group {
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
#> font-weight: initial;
#> text-transform: inherit;
#> border-right-style: solid;
#> border-right-width: 2px;
#> border-right-color: #D3D3D3;
#> padding-left: 5px;
#> padding-right: 5px;
#> vertical-align: top;
#> }
#>
#> #yktlvusyro .gt_row_group_first td {
#> border-top-width: 2px;
#> }
#>
#> #yktlvusyro .gt_summary_row {
#> color: #333333;
#> background-color: #FFFFFF;
#> text-transform: inherit;
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
#> padding-right: 5px;
#> }
#>
#> #yktlvusyro .gt_first_summary_row {
#> border-top-style: solid;
#> border-top-color: #D3D3D3;
#> }
#>
#> #yktlvusyro .gt_first_summary_row.thick {
#> border-top-width: 2px;
#> }
#>
#> #yktlvusyro .gt_last_summary_row {
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
#> padding-right: 5px;
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> }
#>
#> #yktlvusyro .gt_grand_summary_row {
#> color: #333333;
#> background-color: #FFFFFF;
#> text-transform: inherit;
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
#> padding-right: 5px;
#> }
#>
#> #yktlvusyro .gt_first_grand_summary_row {
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
#> padding-right: 5px;
#> border-top-style: double;
#> border-top-width: 6px;
#> border-top-color: #D3D3D3;
#> }
#>
#> #yktlvusyro .gt_striped {
#> background-color: rgba(128, 128, 128, 0.05);
#> }
#>
#> #yktlvusyro .gt_table_body {
#> border-top-style: solid;
#> border-top-width: 2px;
#> border-top-color: #D3D3D3;
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> }
#>
#> #yktlvusyro .gt_footnotes {
#> color: #333333;
#> background-color: #FFFFFF;
#> border-bottom-style: none;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> border-left-style: none;
#> border-left-width: 2px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 2px;
#> border-right-color: #D3D3D3;
#> }
#>
#> #yktlvusyro .gt_footnote {
#> margin: 0px;
#> font-size: 90%;
#> padding-left: 4px;
#> padding-right: 4px;
#> padding-left: 5px;
#> padding-right: 5px;
#> }
#>
#> #yktlvusyro .gt_sourcenotes {
#> color: #333333;
#> background-color: #FFFFFF;
#> border-bottom-style: none;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> border-left-style: none;
#> border-left-width: 2px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 2px;
#> border-right-color: #D3D3D3;
#> }
#>
#> #yktlvusyro .gt_sourcenote {
#> font-size: 90%;
#> padding-top: 4px;
#> padding-bottom: 4px;
#> padding-left: 5px;
#> padding-right: 5px;
#> }
#>
#> #yktlvusyro .gt_left {
#> text-align: left;
#> }
#>
#> #yktlvusyro .gt_center {
#> text-align: center;
#> }
#>
#> #yktlvusyro .gt_right {
#> text-align: right;
#> font-variant-numeric: tabular-nums;
#> }
#>
#> #yktlvusyro .gt_font_normal {
#> font-weight: normal;
#> }
#>
#> #yktlvusyro .gt_font_bold {
#> font-weight: bold;
#> }
#>
#> #yktlvusyro .gt_font_italic {
#> font-style: italic;
#> }
#>
#> #yktlvusyro .gt_super {
#> font-size: 65%;
#> }
#>
#> #yktlvusyro .gt_footnote_marks {
#> font-style: italic;
#> font-weight: normal;
#> font-size: 75%;
#> vertical-align: 0.4em;
#> }
#>
#> #yktlvusyro .gt_asterisk {
#> font-size: 100%;
#> vertical-align: 0;
#> }
#>
#> #yktlvusyro .gt_indent_1 {
#> text-indent: 5px;
#> }
#>
#> #yktlvusyro .gt_indent_2 {
#> text-indent: 10px;
#> }
#>
#> #yktlvusyro .gt_indent_3 {
#> text-indent: 15px;
#> }
#>
#> #yktlvusyro .gt_indent_4 {
#> text-indent: 20px;
#> }
#>
#> #yktlvusyro .gt_indent_5 {
#> text-indent: 25px;
#> }
#> </style>
#> <table class="gt_table">
#> <thead class="gt_header">
#> <tr>
#> <td colspan="5" class="gt_heading gt_title gt_font_normal" style>Bound summary for WLR design<sup class="gt_footnote_marks">1</sup></td>
#> </tr>
#> <tr>
#> <td colspan="5" class="gt_heading gt_subtitle gt_font_normal gt_bottom_border" style>WLR approximation of ~wHR at bound</td>
#> </tr>
#> </thead>
#> <thead class="gt_col_headings">
#> <tr>
#> <th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="2" colspan="1" scope="col">Bound</th>
#> <th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="2" colspan="1" scope="col">Nominal p</th>
#> <th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="2" colspan="1" scope="col">~wHR at bound<sup class="gt_footnote_marks">3</sup></th>
#> <th class="gt_center gt_columns_top_border gt_column_spanner_outer" rowspan="1" colspan="2" scope="colgroup">
#> <span class="gt_column_spanner">Cumulative boundary crossing probability<sup class="gt_footnote_marks">2</sup></span>
#> </th>
#> </tr>
#> <tr>
#> <th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="1" colspan="1" scope="col">Alternate hypothesis</th>
#> <th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="1" colspan="1" scope="col">Null hypothesis</th>
#> </tr>
#> </thead>
#> <tbody class="gt_table_body">
#> <tr class="gt_group_heading_row">
#> <td colspan="5" class="gt_group_heading">Analysis: 1 Time: 14.9 N: 108 Events: 30 wAHR: 0.79 IF: 0.6<sup class="gt_footnote_marks">4</sup></td>
#> </tr>
#> <tr class="gt_row_group_first"><td class="gt_row gt_left">Futility</td>
#> <td class="gt_row gt_right">0.9000</td>
#> <td class="gt_row gt_right">1.5967279</td>
#> <td class="gt_row gt_right">0.0268</td>
#> <td class="gt_row gt_right">0.1000</td></tr>
#> <tr><td class="gt_row gt_left">Efficacy</td>
#> <td class="gt_row gt_right">0.0038</td>
#> <td class="gt_row gt_right">0.3774014</td>
#> <td class="gt_row gt_right">0.0221</td>
#> <td class="gt_row gt_right">0.0038</td></tr>
#> <tr class="gt_group_heading_row">
#> <td colspan="5" class="gt_group_heading">Analysis: 2 Time: 19.2 N: 108 Events: 40 wAHR: 0.75 IF: 0.8<sup class="gt_footnote_marks">4</sup></td>
#> </tr>
#> <tr class="gt_row_group_first"><td class="gt_row gt_left">Futility</td>
#> <td class="gt_row gt_right">1.0000</td>
#> <td class="gt_row gt_right">Inf</td>
#> <td class="gt_row gt_right">0.0268</td>
#> <td class="gt_row gt_right">0.1000</td></tr>
#> <tr><td class="gt_row gt_left">Efficacy</td>
#> <td class="gt_row gt_right">0.0110</td>
#> <td class="gt_row gt_right">0.4849272</td>
#> <td class="gt_row gt_right">0.0889</td>
#> <td class="gt_row gt_right">0.0122</td></tr>
#> <tr class="gt_group_heading_row">
#> <td colspan="5" class="gt_group_heading">Analysis: 3 Time: 24.5 N: 108 Events: 50 wAHR: 0.71 IF: 1<sup class="gt_footnote_marks">4</sup></td>
#> </tr>
#> <tr class="gt_row_group_first"><td class="gt_row gt_left">Futility</td>
#> <td class="gt_row gt_right">1.0000</td>
#> <td class="gt_row gt_right">Inf</td>
#> <td class="gt_row gt_right">0.0268</td>
#> <td class="gt_row gt_right">0.1000</td></tr>
#> <tr><td class="gt_row gt_left">Efficacy</td>
#> <td class="gt_row gt_right">0.0211</td>
#> <td class="gt_row gt_right">0.5630599</td>
#> <td class="gt_row gt_right">0.2071</td>
#> <td class="gt_row gt_right">0.0250</td></tr>
#> </tbody>
#>
#> <tfoot class="gt_footnotes">
#> <tr>
#> <td class="gt_footnote" colspan="5"><sup class="gt_footnote_marks">1</sup> this table is generated by gs_power_wlr.</td>
#> </tr>
#> <tr>
#> <td class="gt_footnote" colspan="5"><sup class="gt_footnote_marks">2</sup> the crossing probability.</td>
#> </tr>
#> <tr>
#> <td class="gt_footnote" colspan="5"><sup class="gt_footnote_marks">3</sup> approximate weighted hazard ratio to cross bound.</td>
#> </tr>
#> <tr>
#> <td class="gt_footnote" colspan="5"><sup class="gt_footnote_marks">4</sup> wAHR is the weighted AHR.</td>
#> </tr>
#> </tfoot>
#> </table>
#> </div>
# usage of display_bound = ...
# to either show efficacy bound or futility bound, or both(default)
gs_power_wlr() %>%
summary() %>%
as_gt(display_bound = "Efficacy")
#> <div id="fplmsgzjir" style="overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
#> <style>html {
#> font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', 'Fira Sans', 'Droid Sans', Arial, sans-serif;
#> }
#>
#> #fplmsgzjir .gt_table {
#> display: table;
#> border-collapse: collapse;
#> margin-left: auto;
#> margin-right: auto;
#> color: #333333;
#> font-size: 16px;
#> font-weight: normal;
#> font-style: normal;
#> background-color: #FFFFFF;
#> width: auto;
#> border-top-style: solid;
#> border-top-width: 2px;
#> border-top-color: #A8A8A8;
#> border-right-style: none;
#> border-right-width: 2px;
#> border-right-color: #D3D3D3;
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #A8A8A8;
#> border-left-style: none;
#> border-left-width: 2px;
#> border-left-color: #D3D3D3;
#> }
#>
#> #fplmsgzjir .gt_heading {
#> background-color: #FFFFFF;
#> text-align: center;
#> border-bottom-color: #FFFFFF;
#> border-left-style: none;
#> border-left-width: 1px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 1px;
#> border-right-color: #D3D3D3;
#> }
#>
#> #fplmsgzjir .gt_title {
#> color: #333333;
#> font-size: 125%;
#> font-weight: initial;
#> padding-top: 4px;
#> padding-bottom: 4px;
#> padding-left: 5px;
#> padding-right: 5px;
#> border-bottom-color: #FFFFFF;
#> border-bottom-width: 0;
#> }
#>
#> #fplmsgzjir .gt_subtitle {
#> color: #333333;
#> font-size: 85%;
#> font-weight: initial;
#> padding-top: 0;
#> padding-bottom: 6px;
#> padding-left: 5px;
#> padding-right: 5px;
#> border-top-color: #FFFFFF;
#> border-top-width: 0;
#> }
#>
#> #fplmsgzjir .gt_bottom_border {
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> }
#>
#> #fplmsgzjir .gt_col_headings {
#> border-top-style: solid;
#> border-top-width: 2px;
#> border-top-color: #D3D3D3;
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> border-left-style: none;
#> border-left-width: 1px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 1px;
#> border-right-color: #D3D3D3;
#> }
#>
#> #fplmsgzjir .gt_col_heading {
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
#> font-weight: normal;
#> text-transform: inherit;
#> border-left-style: none;
#> border-left-width: 1px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 1px;
#> border-right-color: #D3D3D3;
#> vertical-align: bottom;
#> padding-top: 5px;
#> padding-bottom: 6px;
#> padding-left: 5px;
#> padding-right: 5px;
#> overflow-x: hidden;
#> }
#>
#> #fplmsgzjir .gt_column_spanner_outer {
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
#> font-weight: normal;
#> text-transform: inherit;
#> padding-top: 0;
#> padding-bottom: 0;
#> padding-left: 4px;
#> padding-right: 4px;
#> }
#>
#> #fplmsgzjir .gt_column_spanner_outer:first-child {
#> padding-left: 0;
#> }
#>
#> #fplmsgzjir .gt_column_spanner_outer:last-child {
#> padding-right: 0;
#> }
#>
#> #fplmsgzjir .gt_column_spanner {
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> vertical-align: bottom;
#> padding-top: 5px;
#> padding-bottom: 5px;
#> overflow-x: hidden;
#> display: inline-block;
#> width: 100%;
#> }
#>
#> #fplmsgzjir .gt_group_heading {
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
#> padding-right: 5px;
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
#> font-weight: initial;
#> text-transform: inherit;
#> border-top-style: solid;
#> border-top-width: 2px;
#> border-top-color: #D3D3D3;
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> border-left-style: none;
#> border-left-width: 1px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 1px;
#> border-right-color: #D3D3D3;
#> vertical-align: middle;
#> }
#>
#> #fplmsgzjir .gt_empty_group_heading {
#> padding: 0.5px;
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
#> font-weight: initial;
#> border-top-style: solid;
#> border-top-width: 2px;
#> border-top-color: #D3D3D3;
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> vertical-align: middle;
#> }
#>
#> #fplmsgzjir .gt_from_md > :first-child {
#> margin-top: 0;
#> }
#>
#> #fplmsgzjir .gt_from_md > :last-child {
#> margin-bottom: 0;
#> }
#>
#> #fplmsgzjir .gt_row {
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
#> padding-right: 5px;
#> margin: 10px;
#> border-top-style: solid;
#> border-top-width: 1px;
#> border-top-color: #D3D3D3;
#> border-left-style: none;
#> border-left-width: 1px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 1px;
#> border-right-color: #D3D3D3;
#> vertical-align: middle;
#> overflow-x: hidden;
#> }
#>
#> #fplmsgzjir .gt_stub {
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
#> font-weight: initial;
#> text-transform: inherit;
#> border-right-style: solid;
#> border-right-width: 2px;
#> border-right-color: #D3D3D3;
#> padding-left: 5px;
#> padding-right: 5px;
#> }
#>
#> #fplmsgzjir .gt_stub_row_group {
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
#> font-weight: initial;
#> text-transform: inherit;
#> border-right-style: solid;
#> border-right-width: 2px;
#> border-right-color: #D3D3D3;
#> padding-left: 5px;
#> padding-right: 5px;
#> vertical-align: top;
#> }
#>
#> #fplmsgzjir .gt_row_group_first td {
#> border-top-width: 2px;
#> }
#>
#> #fplmsgzjir .gt_summary_row {
#> color: #333333;
#> background-color: #FFFFFF;
#> text-transform: inherit;
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
#> padding-right: 5px;
#> }
#>
#> #fplmsgzjir .gt_first_summary_row {
#> border-top-style: solid;
#> border-top-color: #D3D3D3;
#> }
#>
#> #fplmsgzjir .gt_first_summary_row.thick {
#> border-top-width: 2px;
#> }
#>
#> #fplmsgzjir .gt_last_summary_row {
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
#> padding-right: 5px;
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> }
#>
#> #fplmsgzjir .gt_grand_summary_row {
#> color: #333333;
#> background-color: #FFFFFF;
#> text-transform: inherit;
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
#> padding-right: 5px;
#> }
#>
#> #fplmsgzjir .gt_first_grand_summary_row {
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
#> padding-right: 5px;
#> border-top-style: double;
#> border-top-width: 6px;
#> border-top-color: #D3D3D3;
#> }
#>
#> #fplmsgzjir .gt_striped {
#> background-color: rgba(128, 128, 128, 0.05);
#> }
#>
#> #fplmsgzjir .gt_table_body {
#> border-top-style: solid;
#> border-top-width: 2px;
#> border-top-color: #D3D3D3;
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> }
#>
#> #fplmsgzjir .gt_footnotes {
#> color: #333333;
#> background-color: #FFFFFF;
#> border-bottom-style: none;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> border-left-style: none;
#> border-left-width: 2px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 2px;
#> border-right-color: #D3D3D3;
#> }
#>
#> #fplmsgzjir .gt_footnote {
#> margin: 0px;
#> font-size: 90%;
#> padding-left: 4px;
#> padding-right: 4px;
#> padding-left: 5px;
#> padding-right: 5px;
#> }
#>
#> #fplmsgzjir .gt_sourcenotes {
#> color: #333333;
#> background-color: #FFFFFF;
#> border-bottom-style: none;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> border-left-style: none;
#> border-left-width: 2px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 2px;
#> border-right-color: #D3D3D3;
#> }
#>
#> #fplmsgzjir .gt_sourcenote {
#> font-size: 90%;
#> padding-top: 4px;
#> padding-bottom: 4px;
#> padding-left: 5px;
#> padding-right: 5px;
#> }
#>
#> #fplmsgzjir .gt_left {
#> text-align: left;
#> }
#>
#> #fplmsgzjir .gt_center {
#> text-align: center;
#> }
#>
#> #fplmsgzjir .gt_right {
#> text-align: right;
#> font-variant-numeric: tabular-nums;
#> }
#>
#> #fplmsgzjir .gt_font_normal {
#> font-weight: normal;
#> }
#>
#> #fplmsgzjir .gt_font_bold {
#> font-weight: bold;
#> }
#>
#> #fplmsgzjir .gt_font_italic {
#> font-style: italic;
#> }
#>
#> #fplmsgzjir .gt_super {
#> font-size: 65%;
#> }
#>
#> #fplmsgzjir .gt_footnote_marks {
#> font-style: italic;
#> font-weight: normal;
#> font-size: 75%;
#> vertical-align: 0.4em;
#> }
#>
#> #fplmsgzjir .gt_asterisk {
#> font-size: 100%;
#> vertical-align: 0;
#> }
#>
#> #fplmsgzjir .gt_indent_1 {
#> text-indent: 5px;
#> }
#>
#> #fplmsgzjir .gt_indent_2 {
#> text-indent: 10px;
#> }
#>
#> #fplmsgzjir .gt_indent_3 {
#> text-indent: 15px;
#> }
#>
#> #fplmsgzjir .gt_indent_4 {
#> text-indent: 20px;
#> }
#>
#> #fplmsgzjir .gt_indent_5 {
#> text-indent: 25px;
#> }
#> </style>
#> <table class="gt_table">
#> <thead class="gt_header">
#> <tr>
#> <td colspan="5" class="gt_heading gt_title gt_font_normal" style>Bound summary for WLR design</td>
#> </tr>
#> <tr>
#> <td colspan="5" class="gt_heading gt_subtitle gt_font_normal gt_bottom_border" style>WLR approximation of ~wHR at bound</td>
#> </tr>
#> </thead>
#> <thead class="gt_col_headings">
#> <tr>
#> <th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="2" colspan="1" scope="col">Bound</th>
#> <th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="2" colspan="1" scope="col">Nominal p<sup class="gt_footnote_marks">1</sup></th>
#> <th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="2" colspan="1" scope="col">~wHR at bound<sup class="gt_footnote_marks">2</sup></th>
#> <th class="gt_center gt_columns_top_border gt_column_spanner_outer" rowspan="1" colspan="2" scope="colgroup">
#> <span class="gt_column_spanner">Cumulative boundary crossing probability</span>
#> </th>
#> </tr>
#> <tr>
#> <th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="1" colspan="1" scope="col">Alternate hypothesis</th>
#> <th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="1" colspan="1" scope="col">Null hypothesis</th>
#> </tr>
#> </thead>
#> <tbody class="gt_table_body">
#> <tr class="gt_group_heading_row">
#> <td colspan="5" class="gt_group_heading">Analysis: 1 Time: 14.9 N: 108 Events: 30 wAHR: 0.79 IF: 0.6<sup class="gt_footnote_marks">3</sup></td>
#> </tr>
#> <tr class="gt_row_group_first"><td class="gt_row gt_left">Efficacy</td>
#> <td class="gt_row gt_right">0.0038</td>
#> <td class="gt_row gt_right">0.3774014</td>
#> <td class="gt_row gt_right">0.0221</td>
#> <td class="gt_row gt_right">0.0038</td></tr>
#> <tr class="gt_group_heading_row">
#> <td colspan="5" class="gt_group_heading">Analysis: 2 Time: 19.2 N: 108 Events: 40 wAHR: 0.75 IF: 0.8<sup class="gt_footnote_marks">3</sup></td>
#> </tr>
#> <tr class="gt_row_group_first"><td class="gt_row gt_left">Efficacy</td>
#> <td class="gt_row gt_right">0.0110</td>
#> <td class="gt_row gt_right">0.4849272</td>
#> <td class="gt_row gt_right">0.0889</td>
#> <td class="gt_row gt_right">0.0122</td></tr>
#> <tr class="gt_group_heading_row">
#> <td colspan="5" class="gt_group_heading">Analysis: 3 Time: 24.5 N: 108 Events: 50 wAHR: 0.71 IF: 1<sup class="gt_footnote_marks">3</sup></td>
#> </tr>
#> <tr class="gt_row_group_first"><td class="gt_row gt_left">Efficacy</td>
#> <td class="gt_row gt_right">0.0211</td>
#> <td class="gt_row gt_right">0.5630599</td>
#> <td class="gt_row gt_right">0.2071</td>
#> <td class="gt_row gt_right">0.0250</td></tr>
#> </tbody>
#>
#> <tfoot class="gt_footnotes">
#> <tr>
#> <td class="gt_footnote" colspan="5"><sup class="gt_footnote_marks">1</sup> One-sided p-value for experimental vs control treatment. Values < 0.5 favor experimental, > 0.5 favor control.</td>
#> </tr>
#> <tr>
#> <td class="gt_footnote" colspan="5"><sup class="gt_footnote_marks">2</sup> Approximate hazard ratio to cross bound.</td>
#> </tr>
#> <tr>
#> <td class="gt_footnote" colspan="5"><sup class="gt_footnote_marks">3</sup> wAHR is the weighted AHR.</td>
#> </tr>
#> </tfoot>
#> </table>
#> </div>
# usage of display_columns = ...
# to select the columns to display in the summary table
gs_power_wlr() %>%
summary() %>%
as_gt(display_columns = c("Analysis", "Bound", "Nominal p", "Z", "Probability"))
#> <div id="owollsyrog" style="overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
#> <style>html {
#> font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', 'Fira Sans', 'Droid Sans', Arial, sans-serif;
#> }
#>
#> #owollsyrog .gt_table {
#> display: table;
#> border-collapse: collapse;
#> margin-left: auto;
#> margin-right: auto;
#> color: #333333;
#> font-size: 16px;
#> font-weight: normal;
#> font-style: normal;
#> background-color: #FFFFFF;
#> width: auto;
#> border-top-style: solid;
#> border-top-width: 2px;
#> border-top-color: #A8A8A8;
#> border-right-style: none;
#> border-right-width: 2px;
#> border-right-color: #D3D3D3;
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #A8A8A8;
#> border-left-style: none;
#> border-left-width: 2px;
#> border-left-color: #D3D3D3;
#> }
#>
#> #owollsyrog .gt_heading {
#> background-color: #FFFFFF;
#> text-align: center;
#> border-bottom-color: #FFFFFF;
#> border-left-style: none;
#> border-left-width: 1px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 1px;
#> border-right-color: #D3D3D3;
#> }
#>
#> #owollsyrog .gt_title {
#> color: #333333;
#> font-size: 125%;
#> font-weight: initial;
#> padding-top: 4px;
#> padding-bottom: 4px;
#> padding-left: 5px;
#> padding-right: 5px;
#> border-bottom-color: #FFFFFF;
#> border-bottom-width: 0;
#> }
#>
#> #owollsyrog .gt_subtitle {
#> color: #333333;
#> font-size: 85%;
#> font-weight: initial;
#> padding-top: 0;
#> padding-bottom: 6px;
#> padding-left: 5px;
#> padding-right: 5px;
#> border-top-color: #FFFFFF;
#> border-top-width: 0;
#> }
#>
#> #owollsyrog .gt_bottom_border {
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> }
#>
#> #owollsyrog .gt_col_headings {
#> border-top-style: solid;
#> border-top-width: 2px;
#> border-top-color: #D3D3D3;
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> border-left-style: none;
#> border-left-width: 1px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 1px;
#> border-right-color: #D3D3D3;
#> }
#>
#> #owollsyrog .gt_col_heading {
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
#> font-weight: normal;
#> text-transform: inherit;
#> border-left-style: none;
#> border-left-width: 1px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 1px;
#> border-right-color: #D3D3D3;
#> vertical-align: bottom;
#> padding-top: 5px;
#> padding-bottom: 6px;
#> padding-left: 5px;
#> padding-right: 5px;
#> overflow-x: hidden;
#> }
#>
#> #owollsyrog .gt_column_spanner_outer {
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
#> font-weight: normal;
#> text-transform: inherit;
#> padding-top: 0;
#> padding-bottom: 0;
#> padding-left: 4px;
#> padding-right: 4px;
#> }
#>
#> #owollsyrog .gt_column_spanner_outer:first-child {
#> padding-left: 0;
#> }
#>
#> #owollsyrog .gt_column_spanner_outer:last-child {
#> padding-right: 0;
#> }
#>
#> #owollsyrog .gt_column_spanner {
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> vertical-align: bottom;
#> padding-top: 5px;
#> padding-bottom: 5px;
#> overflow-x: hidden;
#> display: inline-block;
#> width: 100%;
#> }
#>
#> #owollsyrog .gt_group_heading {
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
#> padding-right: 5px;
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
#> font-weight: initial;
#> text-transform: inherit;
#> border-top-style: solid;
#> border-top-width: 2px;
#> border-top-color: #D3D3D3;
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> border-left-style: none;
#> border-left-width: 1px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 1px;
#> border-right-color: #D3D3D3;
#> vertical-align: middle;
#> }
#>
#> #owollsyrog .gt_empty_group_heading {
#> padding: 0.5px;
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
#> font-weight: initial;
#> border-top-style: solid;
#> border-top-width: 2px;
#> border-top-color: #D3D3D3;
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> vertical-align: middle;
#> }
#>
#> #owollsyrog .gt_from_md > :first-child {
#> margin-top: 0;
#> }
#>
#> #owollsyrog .gt_from_md > :last-child {
#> margin-bottom: 0;
#> }
#>
#> #owollsyrog .gt_row {
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
#> padding-right: 5px;
#> margin: 10px;
#> border-top-style: solid;
#> border-top-width: 1px;
#> border-top-color: #D3D3D3;
#> border-left-style: none;
#> border-left-width: 1px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 1px;
#> border-right-color: #D3D3D3;
#> vertical-align: middle;
#> overflow-x: hidden;
#> }
#>
#> #owollsyrog .gt_stub {
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
#> font-weight: initial;
#> text-transform: inherit;
#> border-right-style: solid;
#> border-right-width: 2px;
#> border-right-color: #D3D3D3;
#> padding-left: 5px;
#> padding-right: 5px;
#> }
#>
#> #owollsyrog .gt_stub_row_group {
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
#> font-weight: initial;
#> text-transform: inherit;
#> border-right-style: solid;
#> border-right-width: 2px;
#> border-right-color: #D3D3D3;
#> padding-left: 5px;
#> padding-right: 5px;
#> vertical-align: top;
#> }
#>
#> #owollsyrog .gt_row_group_first td {
#> border-top-width: 2px;
#> }
#>
#> #owollsyrog .gt_summary_row {
#> color: #333333;
#> background-color: #FFFFFF;
#> text-transform: inherit;
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
#> padding-right: 5px;
#> }
#>
#> #owollsyrog .gt_first_summary_row {
#> border-top-style: solid;
#> border-top-color: #D3D3D3;
#> }
#>
#> #owollsyrog .gt_first_summary_row.thick {
#> border-top-width: 2px;
#> }
#>
#> #owollsyrog .gt_last_summary_row {
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
#> padding-right: 5px;
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> }
#>
#> #owollsyrog .gt_grand_summary_row {
#> color: #333333;
#> background-color: #FFFFFF;
#> text-transform: inherit;
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
#> padding-right: 5px;
#> }
#>
#> #owollsyrog .gt_first_grand_summary_row {
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
#> padding-right: 5px;
#> border-top-style: double;
#> border-top-width: 6px;
#> border-top-color: #D3D3D3;
#> }
#>
#> #owollsyrog .gt_striped {
#> background-color: rgba(128, 128, 128, 0.05);
#> }
#>
#> #owollsyrog .gt_table_body {
#> border-top-style: solid;
#> border-top-width: 2px;
#> border-top-color: #D3D3D3;
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> }
#>
#> #owollsyrog .gt_footnotes {
#> color: #333333;
#> background-color: #FFFFFF;
#> border-bottom-style: none;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> border-left-style: none;
#> border-left-width: 2px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 2px;
#> border-right-color: #D3D3D3;
#> }
#>
#> #owollsyrog .gt_footnote {
#> margin: 0px;
#> font-size: 90%;
#> padding-left: 4px;
#> padding-right: 4px;
#> padding-left: 5px;
#> padding-right: 5px;
#> }
#>
#> #owollsyrog .gt_sourcenotes {
#> color: #333333;
#> background-color: #FFFFFF;
#> border-bottom-style: none;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> border-left-style: none;
#> border-left-width: 2px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 2px;
#> border-right-color: #D3D3D3;
#> }
#>
#> #owollsyrog .gt_sourcenote {
#> font-size: 90%;
#> padding-top: 4px;
#> padding-bottom: 4px;
#> padding-left: 5px;
#> padding-right: 5px;
#> }
#>
#> #owollsyrog .gt_left {
#> text-align: left;
#> }
#>
#> #owollsyrog .gt_center {
#> text-align: center;
#> }
#>
#> #owollsyrog .gt_right {
#> text-align: right;
#> font-variant-numeric: tabular-nums;
#> }
#>
#> #owollsyrog .gt_font_normal {
#> font-weight: normal;
#> }
#>
#> #owollsyrog .gt_font_bold {
#> font-weight: bold;
#> }
#>
#> #owollsyrog .gt_font_italic {
#> font-style: italic;
#> }
#>
#> #owollsyrog .gt_super {
#> font-size: 65%;
#> }
#>
#> #owollsyrog .gt_footnote_marks {
#> font-style: italic;
#> font-weight: normal;
#> font-size: 75%;
#> vertical-align: 0.4em;
#> }
#>
#> #owollsyrog .gt_asterisk {
#> font-size: 100%;
#> vertical-align: 0;
#> }
#>
#> #owollsyrog .gt_indent_1 {
#> text-indent: 5px;
#> }
#>
#> #owollsyrog .gt_indent_2 {
#> text-indent: 10px;
#> }
#>
#> #owollsyrog .gt_indent_3 {
#> text-indent: 15px;
#> }
#>
#> #owollsyrog .gt_indent_4 {
#> text-indent: 20px;
#> }
#>
#> #owollsyrog .gt_indent_5 {
#> text-indent: 25px;
#> }
#> </style>
#> <table class="gt_table">
#> <thead class="gt_header">
#> <tr>
#> <td colspan="5" class="gt_heading gt_title gt_font_normal" style>Bound summary for WLR design</td>
#> </tr>
#> <tr>
#> <td colspan="5" class="gt_heading gt_subtitle gt_font_normal gt_bottom_border" style>WLR approximation of ~wHR at bound</td>
#> </tr>
#> </thead>
#> <thead class="gt_col_headings">
#> <tr>
#> <th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="2" colspan="1" scope="col">Bound</th>
#> <th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="2" colspan="1" scope="col">Nominal p<sup class="gt_footnote_marks">1</sup></th>
#> <th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="2" colspan="1" scope="col">Z</th>
#> <th class="gt_center gt_columns_top_border gt_column_spanner_outer" rowspan="1" colspan="2" scope="colgroup">
#> <span class="gt_column_spanner">Cumulative boundary crossing probability</span>
#> </th>
#> </tr>
#> <tr>
#> <th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="1" colspan="1" scope="col">Alternate hypothesis</th>
#> <th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="1" colspan="1" scope="col">Null hypothesis</th>
#> </tr>
#> </thead>
#> <tbody class="gt_table_body">
#> <tr class="gt_group_heading_row">
#> <td colspan="5" class="gt_group_heading">Analysis: 1 Time: 14.9 N: 108 Events: 30 wAHR: 0.79 IF: 0.6<sup class="gt_footnote_marks">2</sup></td>
#> </tr>
#> <tr class="gt_row_group_first"><td class="gt_row gt_left">Futility</td>
#> <td class="gt_row gt_right">0.9000</td>
#> <td class="gt_row gt_right">-1.28</td>
#> <td class="gt_row gt_right">0.0268</td>
#> <td class="gt_row gt_right">0.1000</td></tr>
#> <tr><td class="gt_row gt_left">Efficacy</td>
#> <td class="gt_row gt_right">0.0038</td>
#> <td class="gt_row gt_right">2.67</td>
#> <td class="gt_row gt_right">0.0221</td>
#> <td class="gt_row gt_right">0.0038</td></tr>
#> <tr class="gt_group_heading_row">
#> <td colspan="5" class="gt_group_heading">Analysis: 2 Time: 19.2 N: 108 Events: 40 wAHR: 0.75 IF: 0.8<sup class="gt_footnote_marks">2</sup></td>
#> </tr>
#> <tr class="gt_row_group_first"><td class="gt_row gt_left">Futility</td>
#> <td class="gt_row gt_right">1.0000</td>
#> <td class="gt_row gt_right">-Inf</td>
#> <td class="gt_row gt_right">0.0268</td>
#> <td class="gt_row gt_right">0.1000</td></tr>
#> <tr><td class="gt_row gt_left">Efficacy</td>
#> <td class="gt_row gt_right">0.0110</td>
#> <td class="gt_row gt_right">2.29</td>
#> <td class="gt_row gt_right">0.0889</td>
#> <td class="gt_row gt_right">0.0122</td></tr>
#> <tr class="gt_group_heading_row">
#> <td colspan="5" class="gt_group_heading">Analysis: 3 Time: 24.5 N: 108 Events: 50 wAHR: 0.71 IF: 1<sup class="gt_footnote_marks">2</sup></td>
#> </tr>
#> <tr class="gt_row_group_first"><td class="gt_row gt_left">Futility</td>
#> <td class="gt_row gt_right">1.0000</td>
#> <td class="gt_row gt_right">-Inf</td>
#> <td class="gt_row gt_right">0.0268</td>
#> <td class="gt_row gt_right">0.1000</td></tr>
#> <tr><td class="gt_row gt_left">Efficacy</td>
#> <td class="gt_row gt_right">0.0211</td>
#> <td class="gt_row gt_right">2.03</td>
#> <td class="gt_row gt_right">0.2071</td>
#> <td class="gt_row gt_right">0.0250</td></tr>
#> </tbody>
#>
#> <tfoot class="gt_footnotes">
#> <tr>
#> <td class="gt_footnote" colspan="5"><sup class="gt_footnote_marks">1</sup> One-sided p-value for experimental vs control treatment. Values < 0.5 favor experimental, > 0.5 favor control.</td>
#> </tr>
#> <tr>
#> <td class="gt_footnote" colspan="5"><sup class="gt_footnote_marks">2</sup> wAHR is the weighted AHR.</td>
#> </tr>
#> </tfoot>
#> </table>
#> </div>