Skip to contents

Overview of a summary statistics across time and arm for a selected data set.

Usage

mng01_1_main(
  adam_db,
  dataset = "adlb",
  x = "AVISIT",
  y = "AVAL",
  y_name = "PARAM",
  y_unit = NA,
  armvar = .study$actualarm,
  center_fun = c("mean", "median"),
  interval_fun = c("mean_ci", "mean_sei", "mean_sdi", "median_ci", "quantiles", "range"),
  show_table = TRUE,
  jitter = TRUE,
  show_n = TRUE,
  show_h_grid = .study$show_h_grid,
  show_v_grid = .study$show_v_grid,
  legend_pos = .study$legend_pos,
  line_col = .study$color_dict,
  .study = list(actualarm = "ACTARM", show_h_grid = TRUE, show_v_grid = FALSE, legend_pos
    = "top", color_dict = nestcolor::color_palette()),
  ...
)

mng01_1_lyt(
  df,
  alt_count,
  x = "AVISIT",
  y = "AVAL",
  y_name = "PARAM",
  y_unit = "AVALU",
  armvar = .study$actualarm,
  center_fun = c("mean", "median"),
  interval_fun = c("mean_ci", "mean_sei", "mean_sdi", "median_ci", "quantiles", "range"),
  show_table = TRUE,
  jitter = TRUE,
  show_n = TRUE,
  show_h_grid = .study$show_h_grid,
  show_v_grid = .study$show_v_grid,
  legend_pos = .study$legend_pos,
  line_col = .study$color_dict,
  .study = list(actualarm = "ACTARM", show_h_grid = TRUE, show_v_grid = FALSE, legend_pos
    = "top", color_dict = getOption("tern.color"))
)

mng01_1_pre(adam_db, dataset, x = "AVISIT", ...)

mng01_1_post(tlg, ...)

mng01_1

Format

An object of class chevron_tlg of length 1.

Arguments

adam_db

(dm) object containing the ADaM datasets

dataset

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

x

(character) the name of a column in the dataset to represent on the x-axis.

y

(string) the name of the variable to be represented on the y-axis.

y_name

(string) the variable name for y. Used for plot's subtitle.

y_unit

(string) the name of the variable with the units of y. Used for plot's subtitle. if NA, only y_name is displayed as subtitle.

armvar

(character) variable used for column splitting

center_fun

(string) the function to compute the estimate value.

interval_fun

(string) the function defining the crossbar range.

show_table

(flag) should the summary statistic table be displayed.

jitter

(flag) should data point be slightly spread on the x-axis.

show_n

(flag) should the number of observation be displayed int the table.

show_h_grid

(flag) should horizontal grid be displayed.

show_v_grid

(flag) should vertical grid be displayed.

legend_pos

(string) the position of the legend.

line_col

(character) describing the colors to use for the lines or a named character vector associating values of armvar with color names.

.study

(list) with default values for the arguments of the function

...

not used.

df

(dataframe) data set containing all analysis variables.

alt_count

(dataframe) data set that will be used (only) to counts objects in strata.

tlg

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

Value

a list of ggplot objects.

Details

  • No overall value.

  • Preprocessing filters for ANL01FL in the selected data set.

Functions

  • mng01_1_main(): Main TLG Function

  • mng01_1_lyt(): Graph Layout

  • mng01_1_pre(): Preprocessing

  • mng01_1_post(): Postprocessing

Examples

library(dm)
library(dplyr)
#> 
#> Attaching package: ‘dplyr’
#> The following objects are masked from ‘package:stats’:
#> 
#>     filter, lag
#> The following objects are masked from ‘package:base’:
#> 
#>     intersect, setdiff, setequal, union

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

run(mng01_1, syn_test_data(), "adlb")
#> $`Alanine Aminotransferase Measurement`

#> 
#> $`C-Reactive Protein Measurement`

#> 
#> $`Immunoglobulin A Measurement`

#>