Skip to contents

Prepare datasets for interactive forest plot

Usage

prepare_ae_forestly(
  meta,
  population = NULL,
  observation = NULL,
  parameter,
  reference_group = NULL,
  ae_listing_display = c("SEX", "RACE", "AGE", "ASTDY", "AESEV", "AESER", "AEREL",
    "AEACN", "AEOUT", "SITEID", "ADURN", "ADURU")
)

Arguments

meta

A metadata object created by metalite.

population

A character value of population term name. The term name is used as key to link information.

observation

A character value of observation term name. The term name is used as key to link information.

parameter

A character value of parameter term name. The term name is used as key to link information.

reference_group

An integer to indicate reference group. Default is 2 if there are 2 groups, otherwise, the default is 1.

ae_listing_display

vector of name of varriables used to display on AE listing table

Examples

library(metalite)
library(metalite.ae)
meta <- meta_ae_example()
prepare_ae_forestly(meta, "apat", "wk12", "any;rel")
#> List of 17
#>  $ meta           :List of 7
#>  $ population     : chr "apat"
#>  $ observation    : chr "wk12"
#>  $ parameter      : chr "any;rel"
#>  $ n              :'data.frame':	359 obs. of  4 variables:
#>  $ order          : num [1:359] 1030 1031 1032 1033 1034 ...
#>  $ group          : chr [1:4] "Placebo" "Low Dose" "High Dose" "Total"
#>  $ reference_group: num 1
#>  $ parameter_order: Factor w/ 2 levels "any","rel": 1 1 1 1 1 1 1 1 1 1 ...
#>  $ prop           :'data.frame':	359 obs. of  4 variables:
#>  $ diff           :'data.frame':	359 obs. of  2 variables:
#>  $ n_pop          :'data.frame':	1 obs. of  4 variables:
#>  $ name           : chr [1:359] "Atrial fibrillation" "Atrial flutter" "Atrial hypertrophy" "Atrioventricular block first degree" ...
#>  $ ci_lower       :'data.frame':	359 obs. of  2 variables:
#>  $ ci_upper       :'data.frame':	359 obs. of  2 variables:
#>  $ p              :'data.frame':	359 obs. of  2 variables:
#>  $ ae_listing     :'data.frame':	1895 obs. of  15 variables: