Skip to content

Commit

Permalink
update examples in disposition
Browse files Browse the repository at this point in the history
  • Loading branch information
wangben718 committed Aug 8, 2024
1 parent b0739b6 commit ad2deef
Show file tree
Hide file tree
Showing 6 changed files with 149 additions and 1,089 deletions.
2 changes: 1 addition & 1 deletion R/react_base_char.R
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ react_base_char <- function(
x_sl <- metadata_sl |>
prepare_sl_summary(
population = population,
analysis = "base_char",
analysis = metadata_sl$plan$analysis,
parameter = sl_parameter
) |>
format_base_char(display_col = display_sl, digits_prop = 2)
Expand Down
10 changes: 4 additions & 6 deletions vignettes/Disposition.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,10 @@ adsl$TRTA <- factor(adsl$TRTA,
adsl$EOSSTT <- sample(x = c("Participants Ongoing", "Discontinued"),
size = length(adsl$USUBJID),
prob = c(0.8, 0.2), replace = TRUE)
# Create a variable EOTSTT1 indicating the end of treatment status part 1
adsl$EOTSTT1 <- sample(x = c("Completed", "Discontinued"),
size = length(adsl$USUBJID),
prob = c(0.85, 0.15), replace = TRUE)
adsl <- adsl %>%
mutate(DCTREAS = ifelse(DISCONFL == "Y", DCREASCD, "ZStatus Not Recorded"))
adsl$EOTSTT1 <- ifelse(adsl$DISCONFL == "Y", "Discontinued", "Completed")
adsl$DCTREAS<- ifelse(adsl$EOTSTT1 == "Discontinued" & adsl$EOSSTT == "Discontinued", adsl$DCREASCD, NA)
head(adsl)
```
Expand Down Expand Up @@ -227,7 +225,7 @@ x <- outdata |>
format_disposition()
x$tbl <- x$tbl %>%
mutate(name = ifelse(trimws(name) == "ZStatus Not Recorded", " Status Not Recorded", name))
mutate(name = ifelse(trimws(name) == "Status Not Recorded", " Status Not Recorded", name))
x |>
rtf_disposition(
Expand Down
Binary file removed vignettes/outtable/bar0char0subgroup.pdf
Binary file not shown.
File renamed without changes.
Loading

0 comments on commit ad2deef

Please sign in to comment.