@@ -32,7 +32,9 @@ as_gt <- function(x, ...) {
32
32
# '
33
33
# ' @export
34
34
# '
35
- # ' @examplesIf interactive() && !identical(Sys.getenv("IN_PKGDOWN"), "true")
35
+ # ' @examplesIf !identical(Sys.getenv("IN_PKGDOWN"), "true")
36
+ # ' # Fixed design examples ----
37
+ # '
36
38
# ' library(dplyr)
37
39
# '
38
40
# ' # Enrollment rate
@@ -154,7 +156,9 @@ fd_footnote <- function(x, method) {
154
156
# '
155
157
# ' @export
156
158
# '
157
- # ' @examplesIf interactive() && !identical(Sys.getenv("IN_PKGDOWN"), "true")
159
+ # ' @examplesIf !identical(Sys.getenv("IN_PKGDOWN"), "true")
160
+ # ' # Group sequential design examples ---
161
+ # '
158
162
# ' library(dplyr)
159
163
# ' # Example 1 ----
160
164
# ' # The default output
@@ -163,15 +167,15 @@ fd_footnote <- function(x, method) {
163
167
# ' summary() %>%
164
168
# ' as_gt()
165
169
# '
166
- # ' gs_power_ahr() %>%
170
+ # ' gs_power_ahr(lpar = list(sf = gsDesign::sfLDOF, total_spend = 0.1) ) %>%
167
171
# ' summary() %>%
168
172
# ' as_gt()
169
173
# '
170
174
# ' gs_design_wlr() %>%
171
175
# ' summary() %>%
172
176
# ' as_gt()
173
177
# '
174
- # ' gs_power_wlr() %>%
178
+ # ' gs_power_wlr(lpar = list(sf = gsDesign::sfLDOF, total_spend = 0.1) ) %>%
175
179
# ' summary() %>%
176
180
# ' as_gt()
177
181
# '
@@ -190,7 +194,7 @@ fd_footnote <- function(x, method) {
190
194
# ' # Example 2 ----
191
195
# ' # Usage of title = ..., subtitle = ...
192
196
# ' # to edit the title/subtitle
193
- # ' gs_power_wlr() %>%
197
+ # ' gs_power_wlr(lpar = list(sf = gsDesign::sfLDOF, total_spend = 0.1) ) %>%
194
198
# ' summary() %>%
195
199
# ' as_gt(
196
200
# ' title = "Bound Summary",
@@ -200,7 +204,7 @@ fd_footnote <- function(x, method) {
200
204
# ' # Example 3 ----
201
205
# ' # Usage of colname_spanner = ..., colname_spannersub = ...
202
206
# ' # to edit the spanner and its sub-spanner
203
- # ' gs_power_wlr() %>%
207
+ # ' gs_power_wlr(lpar = list(sf = gsDesign::sfLDOF, total_spend = 0.1) ) %>%
204
208
# ' summary() %>%
205
209
# ' as_gt(
206
210
# ' colname_spanner = "Cumulative probability to cross boundaries",
@@ -210,7 +214,7 @@ fd_footnote <- function(x, method) {
210
214
# ' # Example 4 ----
211
215
# ' # Usage of footnote = ...
212
216
# ' # to edit the footnote
213
- # ' gs_power_wlr() %>%
217
+ # ' gs_power_wlr(lpar = list(sf = gsDesign::sfLDOF, total_spend = 0.1) ) %>%
214
218
# ' summary() %>%
215
219
# ' as_gt(
216
220
# ' footnote = list(
@@ -228,14 +232,14 @@ fd_footnote <- function(x, method) {
228
232
# ' # Example 5 ----
229
233
# ' # Usage of display_bound = ...
230
234
# ' # to either show efficacy bound or futility bound, or both(default)
231
- # ' gs_power_wlr() %>%
235
+ # ' gs_power_wlr(lpar = list(sf = gsDesign::sfLDOF, total_spend = 0.1) ) %>%
232
236
# ' summary() %>%
233
237
# ' as_gt(display_bound = "Efficacy")
234
238
# '
235
239
# ' # Example 6 ----
236
240
# ' # Usage of display_columns = ...
237
241
# ' # to select the columns to display in the summary table
238
- # ' gs_power_wlr() %>%
242
+ # ' gs_power_wlr(lpar = list(sf = gsDesign::sfLDOF, total_spend = 0.1) ) %>%
239
243
# ' summary() %>%
240
244
# ' as_gt(display_columns = c("Analysis", "Bound", "Nominal p", "Z", "Probability"))
241
245
# '
0 commit comments