Skip to contents

KMG01 Kaplan-Meier Plot 1.

Usage

kmg01_main(adam_db, dataset = "adtte", arm_var = "ARM", ...)

kmg01_pre(adam_db, dataset = "adtte", ...)

kmg01_post(tlg, ...)

kmg01

Format

An object of class chevron_g of length 1.

Arguments

adam_db

(list of data.frames) object containing the ADaM datasets

dataset

(string) the name of a table in the adam_db object.

arm_var

(string) variable used for column splitting

...

Further arguments passed to g_km and control_coxph. For details, see the documentation in tern. Commonly used arguments include col, pval_method, ties, conf_level, conf_type, annot_coxph, annot_stats, etc.

tlg

(TableTree, Listing or ggplot) object typically produced by a main function.

Value

a gTree object.

Details

  • No overall value.

Functions

  • kmg01_main(): Main TLG Function

  • kmg01_pre(): Preprocessing

  • kmg01_post(): Postprocessing

Note

  • adam_db object must contain the table specified by dataset with the columns specified by arm_var.

Examples

library(dplyr)
library(dunlin)

col <- c(
  "A: Drug X" = "black",
  "B: Placebo" = "blue",
  "C: Combination" = "gray"
)

syn_data2 <- log_filter(syn_data, PARAMCD == "OS", "adtte")
run(kmg01, syn_data2, dataset = "adtte", line_col = col)

#> gTree[GRID.gTree.176] 

syn_data3 <- log_filter(syn_data, PARAMCD == "AEREPTTE", "adaette")
run(kmg01, syn_data3, dataset = "adaette")

#> gTree[GRID.gTree.289]