View source: R/format_ae_specific.R
format_ae_specific | R Documentation |
Format AE specific analysis
format_ae_specific(
outdata,
display = c("n", "prop", "total"),
hide_soc_stats = FALSE,
digits_prop = 1,
digits_ci = 1,
digits_p = 3,
digits_dur = c(1, 1),
digits_events = c(1, 1),
filter_method = c("percent", "count"),
filter_criteria = 0,
sort_order = c("alphabetical", "count_des", "count_asc"),
sort_column = NULL,
mock = FALSE
)
outdata |
An |
display |
A character vector of measurement to be displayed:
|
hide_soc_stats |
A boolean value to hide stats for SOC rows. |
digits_prop |
A numeric value of number of digits for proportion value. |
digits_ci |
A numeric value of number of digits for confidence interval. |
digits_p |
A numeric value of number of digits for p-value. |
digits_dur |
A numeric value of number of digits for average duration of adverse event. |
digits_events |
A numeric value of number of digits for average of number of adverse events per subject. |
filter_method |
A character value to specify how to filter rows:
|
filter_criteria |
A numeric value to display rows where at least
one therapy group has a percent incidence or participant count
greater than or equal to the specified value.
If |
sort_order |
A character value to specify sorting order:
|
sort_column |
A character value of |
mock |
A boolean value to display mock table. |
A list of analysis raw datasets.
meta <- meta_ae_example()
outdata <- prepare_ae_specific(meta,
population = "apat",
observation = "wk12",
parameter = "rel"
)
# Basic example
tbl <- outdata |>
format_ae_specific()
head(tbl$tbl)
# Filtering
tbl <- outdata |>
format_ae_specific(
filter_method = "percent",
filter_criteria = 10
)
head(tbl$tbl)
# Display different measurements
tbl <- outdata |>
extend_ae_specific_events() |>
format_ae_specific(display = c("n", "prop", "events_count"))
head(tbl$tbl)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.