|
34 | 34 | #' )
|
35 | 35 | #'
|
36 | 36 | #' generate_event_table_ol(event_data, hypothesis)
|
37 |
| -#' |
| 37 | +#' |
38 | 38 | #' #----------------------Example of two IAs and FA
|
39 | 39 | #' event_data <- data.frame(
|
40 |
| -#'Population = c("Population 1", "Population 2", "Population 1 Intersection 2", "Overall population"), |
41 |
| -#'IA1 = c(100, 110, 80, 225), # First Interim Analysis values indicating the number of events observed in each group |
42 |
| -#'IA2 = c(120, 130, 90, 240), # Second Interim Analysis values indicating the number of events observed in each group |
43 |
| -#'FA = c(200, 220, 160, 450) |
44 |
| -#') |
| 40 | +#' Population = c("Population 1", "Population 2", "Population 1 Intersection 2", "Overall population"), |
| 41 | +#' IA1 = c(100, 110, 80, 225), # First Interim Analysis values indicating the number of events observed in each group |
| 42 | +#' IA2 = c(120, 130, 90, 240), # Second Interim Analysis values indicating the number of events observed in each group |
| 43 | +#' FA = c(200, 220, 160, 450) |
| 44 | +#' ) |
45 | 45 | #'
|
46 |
| -#'hypothesis <- list( |
47 |
| -#' H1 = "Efficacy in Population 1", |
48 |
| -#' H2 = "Efficacy in Population 2", |
49 |
| -#' H3 = "Efficacy in Overall population" |
50 |
| -#') |
| 46 | +#' hypothesis <- list( |
| 47 | +#' H1 = "Efficacy in Population 1", |
| 48 | +#' H2 = "Efficacy in Population 2", |
| 49 | +#' H3 = "Efficacy in Overall population" |
| 50 | +#' ) |
51 | 51 | #'
|
52 |
| -#'generate_event_table_ol(event_data, hypothesis) |
| 52 | +#' generate_event_table_ol(event_data, hypothesis) |
53 | 53 | #'
|
54 | 54 | generate_event_table_ol <- function(event_data, hypothesis) {
|
55 | 55 | result_df <- tibble(
|
@@ -92,5 +92,3 @@ generate_event_table_ol <- function(event_data, hypothesis) {
|
92 | 92 |
|
93 | 93 | return(result_df)
|
94 | 94 | }
|
95 |
| - |
96 |
| - |
0 commit comments