Skip to content

Commit 63934d8

Browse files
Adding new module using summarize_glm_count (#1386)
# Pull Request Fixes #1379 This PR adds a new module `tm_t_glm_counts` that uses `tern::summarize_glm_count` to create a table output per request. <details><summary>Sample app on how to use it </summary> <p> ```r devtools::load_all("../teal.modules.clinical") data <- within(teal_data(), { library("tern") ADSL <- tern_ex_adsl ADTTE <- tern_ex_adtte }) join_keys(data) <- default_cdisc_join_keys[names(data)] arm_ref_comp <- list( ACTARMCD = list( ref = "ARM B", comp = c("ARM A", "ARM C") ), ARM = list( ref = "B: Placebo", comp = c("A: Drug X", "C: Combination") ) ) ADSL <- data[["ADSL"]] ADTTE <- data[["ADTTE"]] # Initialize the teal app app <- init( data = data, modules = modules( tm_t_glm_counts( dataname = "ADTTE", arm_var = choices_selected( variable_choices(ADTTE, c("ARM", "ARMCD", "ACTARMCD")), "ARMCD" ), arm_ref_comp = arm_ref_comp, aval_var = choices_selected( variable_choices(ADTTE, "AVAL"), "AVAL" ), strata_var = choices_selected( variable_choices(ADSL, "SEX"), NULL ), offset_var = choices_selected( variable_choices(ADSL, "AGE"), NULL ), cov_var = choices_selected( variable_choices(ADTTE, "SITEID"), NULL ) ) ) ) if (interactive()) { shinyApp(ui = app$ui, server = app$server) } ``` </p> </details> Image of the output ![image](https://github.com/user-attachments/assets/2906bde6-5c64-4022-86b1-a994619326fd) --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
1 parent d9efd01 commit 63934d8

File tree

5 files changed

+845
-0
lines changed

5 files changed

+845
-0
lines changed

NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ export(tm_t_events_by_grade)
5151
export(tm_t_events_patyear)
5252
export(tm_t_events_summary)
5353
export(tm_t_exposure)
54+
export(tm_t_glm_counts)
5455
export(tm_t_logistic)
5556
export(tm_t_mult_events)
5657
export(tm_t_pp_basic_info)

0 commit comments

Comments
 (0)