Skip to content

Commit

Permalink
Update demographic.qmd
Browse files Browse the repository at this point in the history
  • Loading branch information
ddsjoberg committed Sep 17, 2024
1 parent f1bbb37 commit 3775505
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tlg/demographic.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Now we will add some pre-processing to create some extra formatted variables rea
#| message: false
library(dplyr)
# Create categorical variables, remove scren failures, and assign column labels
# Create categorical variables, remove screen failures, and assign column labels
adsl <- pharmaverseadam::adsl |>
filter(!ACTARM %in% "Screen Failure") |>
mutate(
Expand Down Expand Up @@ -80,9 +80,7 @@ tbl_ard_summary(
by = ACTARM,
include = c(AGE, AGEGR1, SEX, RACE),
type = AGE ~ "continuous2",
statistic = AGE ~ c("{mean} ({sd})",
"{median} ({p25}, {p75})",
"{min}, {max}"),
statistic = AGE ~ c("{mean} ({sd})", "{median} ({p25}, {p75})", "{min}, {max}"),
missing = "always"
) |>
bold_labels() |>
Expand Down

0 comments on commit 3775505

Please sign in to comment.