Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions ..Rcheck/00check.log

This file was deleted.

2 changes: 2 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@
^CITATION\.cff$
^doc$
^Meta$
^examples$
^inst/aiprompts$
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@
docs
/doc/
/Meta/
*.tar.gz
*.Rcheck/
9 changes: 6 additions & 3 deletions R/generate_event_cc.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
#' #------------------------Example of IA and FA
#' event <- data.frame(
#' Population = c("Experimental 1", "Experimental 2", "Experimental 3", "Control"),
#' IA = c(70, 75, 80, 85), # Interim Analysis values indicating the number of events observed in each group
#' # Interim Analysis values indicating the number of events observed in each group
#' IA = c(70, 75, 80, 85),
#' FA = c(135, 150, 165, 170)
#' )
#'
Expand All @@ -33,8 +34,10 @@
#' #----------------------Example of two IAs and FA
#' event <- data.frame(
#' Population = c("Experimental 1", "Experimental 2", "Experimental 3", "Control"),
#' IA1 = c(70, 75, 80, 85), # First Interim Analysis values indicating the number of events observed in each group
#' IA2 = c(90, 95, 100, 105), # Second Interim Analysis values indicating the number of events observed in each group
#' # First Interim Analysis values indicating the number of events observed in each group
#' IA1 = c(70, 75, 80, 85),
#' # Second Interim Analysis values indicating the number of events observed in each group
#' IA2 = c(90, 95, 100, 105),
#' FA = c(135, 150, 165, 170)
#' )
#'
Expand Down
15 changes: 10 additions & 5 deletions R/generate_event_ol.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@
#' @examples
#' #------------------------Example of IA and FA
#' event <- data.frame(
#' Population = c("Population 1", "Population 2", "Population 1 Intersection 2", "Overall population"),
#' IA = c(100, 110, 80, 225), # Interim Analysis values indicating the number of events observed in each group
#' Population = c("Population 1", "Population 2", "Population 1 Intersection 2",
#' "Overall population"),
#' # Interim Analysis values indicating the number of events observed in each group
#' IA = c(100, 110, 80, 225),
#' FA = c(200, 220, 160, 450)
#' )
#'
Expand All @@ -37,9 +39,12 @@
#'
#' #----------------------Example of two IAs and FA
#' event <- data.frame(
#' Population = c("Population 1", "Population 2", "Population 1 Intersection 2", "Overall population"),
#' IA1 = c(100, 110, 80, 225), # First Interim Analysis values indicating the number of events observed in each group
#' IA2 = c(120, 130, 90, 240), # Second Interim Analysis values indicating the number of events observed in each group
#' Population = c("Population 1", "Population 2", "Population 1 Intersection 2",
#' "Overall population"),
#' # First Interim Analysis values indicating the number of events observed in each group
#' IA1 = c(100, 110, 80, 225),
#' # Second Interim Analysis values indicating the number of events observed in each group
#' IA2 = c(120, 130, 90, 240),
#' FA = c(200, 220, 160, 450)
#' )
#'
Expand Down
21 changes: 12 additions & 9 deletions R/generate_event_table_.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,29 +27,32 @@
#' # ----------------------- Example of common control
#' event <- data.frame(
#' Population = c("Experimental 1", "Experimental 2", "Experimental 3", "Control"),
#' IA = c(70, 75, 80, 85), # Interim analysis values indicating the number of events observed in each experimental group.
#' FA = c(135, 150, 165, 170) # Final analysis values indicating the cumulative number of events observed in each group.
#' # Interim analysis values indicating the number of events observed in each experimental group.
#' IA = c(70, 75, 80, 85),
#' # Final analysis values indicating the cumulative number of events observed in each group.
#' FA = c(135, 150, 165, 170)
#' )
#'
#' hypothesis <- list(
#' H1 = "Experimental 1 vs. Control", # Hypothesis comparing Experimental 1 with Control.
#' H2 = "Experimental 2 vs. Control", # Hypothesis comparing Experimental 2 with Control.
#' H3 = "Experimental 1 vs. Experimental 2" # Hypothesis comparing Experimental 1 and Experimental 2.
#' H1 = "Experimental 1 vs. Control",
#' H2 = "Experimental 2 vs. Control",
#' H3 = "Experimental 1 vs. Experimental 2"
#' )
#'
#' generate_event_table_(event, hypothesis, type = "common_control")
#'
#' # ------------------------ Example of overall population
#' event <- data.frame(
#' Population = c("Population 1", "Population 2", "Population 1 Intersection 2", "Overall population"),
#' Population = c("Population 1", "Population 2", "Population 1 Intersection 2",
#' "Overall population"),
#' IA = c(100, 110, 80, 225), # Interim analysis values for the overall population.
#' FA = c(200, 220, 160, 450) # Final analysis values for the overall population.
#' )
#'
#' hypothesis <- list(
#' H1 = "Efficacy in Population 1", # Hypothesis assessing efficacy in Population 1.
#' H2 = "Efficacy in Population 2", # Hypothesis assessing efficacy in Population 2.
#' H3 = "Efficacy in Overall population" # Hypothesis assessing efficacy in the overall population.
#' H1 = "Efficacy in Population 1",
#' H2 = "Efficacy in Population 2",
#' H3 = "Efficacy in Overall population"
#' )
#'
#' generate_event_table_(event, hypothesis, type = "overlap_population")
Expand Down
File renamed without changes.
21 changes: 12 additions & 9 deletions man/generate_event_table_.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions man/generate_event_table_cc.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 10 additions & 5 deletions man/generate_event_table_ol.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions vignettes/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.html
Loading