@@ -189,48 +189,6 @@ as_gt.design_fixed_rmst_summary <- function(
189
189
190
190
get_method <- function (x , methods ) intersect(methods , class(x ))[1 ]
191
191
192
- # get the fixed design method
193
- fd_method <- function (x ) {
194
- get_method(x , c(" ahr" , " fh" , " mb" , " lf" , " rd" , " maxcombo" , " milestone" , " rmst" ))
195
- }
196
-
197
- # get the default title
198
- fd_title <- function (method ) {
199
- sprintf(" Fixed Design %s Method" , switch (
200
- method ,
201
- ahr = " under AHR" , fh = " under Fleming-Harrington" , mb = " under Magirr-Burman" ,
202
- lf = " under Lachin and Foulkes" , maxcombo = " under MaxCombo" ,
203
- milestone = " under Milestone" , rmst = " under Restricted Mean Survival Time" ,
204
- rd = " of Risk Difference under Farrington-Manning"
205
- ))
206
- }
207
-
208
- # get the default footnote
209
- fd_footnote <- function (x , method ) {
210
- switch (
211
- method ,
212
- ahr = " Power computed with average hazard ratio method." ,
213
- fh = paste(
214
- " Power for Fleming-Harrington test" , substring(x $ Design , 19 ),
215
- " using method of Yung and Liu."
216
- ),
217
- lf = paste(
218
- " Power using Lachin and Foulkes method applied using expected" ,
219
- " average hazard ratio (AHR) at time of planned analysis."
220
- ),
221
- rd = paste(
222
- " Risk difference power without continuity correction using method of" ,
223
- " Farrington and Manning."
224
- ),
225
- maxcombo = paste0(
226
- " Power for MaxCombo test with Fleming-Harrington tests " ,
227
- substring(x $ Design , 9 ), " ."
228
- ),
229
- # for mb, milestone, and rmst
230
- paste(" Power for" , x $ Design , " computed with method of Yung and Liu." )
231
- )
232
- }
233
-
234
192
# ' @rdname as_gt
235
193
# '
236
194
# ' @param title A string to specify the title of the gt table.
0 commit comments