fstg01_main | R Documentation |
FSTG01
Subgroup Analysis of Best Overall Response.The template produces the subgroup analysis of best overall response graphic.
fstg01_main(
adam_db,
dataset = "adrs",
arm_var = "ARM",
rsp_var = "IS_RSP",
subgroups = c("SEX", "AGEGR1", "RACE"),
strata_var = NULL,
stat_var = c("n_tot", "n", "n_rsp", "prop", "or", "ci"),
...
)
fstg01_pre(adam_db, ...)
fstg01
adam_db |
( |
dataset |
( |
arm_var |
( |
rsp_var |
( |
subgroups |
( |
strata_var |
( |
stat_var |
( |
... |
Further arguments passed to |
An object of class chevron_g
of length 1.
No overall value.
Keep zero count rows by default.
the main function returns a grob
object.
a gTree
object.
the preprocessing function returns a list
of data.frame
.
fstg01_main()
: Main TLG Function
fstg01_pre()
: Preprocessing
adam_db
object must contain the table specified by dataset
with "PARAMCD"
, "ARM"
,
"AVALC"
, and the columns specified by subgroups
which is denoted as
c("SEX", "AGEGR1", "RACE")
by default.
If the plot is too large to be rendered in the output, please provide gp
, width_row_names
,
width_columns
and width_forest
manually to make it fit. See tern::g_forest
for more details.
library(dplyr)
library(dunlin)
proc_data <- log_filter(
syn_data,
PARAMCD == "BESRSPI" & ARM %in% c("A: Drug X", "B: Placebo"), "adrs"
)
run(fstg01, proc_data,
subgroups = c("SEX", "AGEGR1", "RACE"),
conf_level = 0.90, dataset = "adrs"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.