Laboratory Test A: Drug X B: Placebo C: Combination
Direction of Abnormality (N=134) (N=134) (N=132)
———————————————————————————————————————————————————————————————————————————————————————
Alanine Aminotransferase Measurement
Low 57/113 (50.4%) 62/117 (53%) 61/123 (49.6%)
High 0/134 0/134 0/132
C-Reactive Protein Measurement
Low 78/119 (65.5%) 71/113 (62.8%) 62/112 (55.4%)
High 69/114 (60.5%) 57/112 (50.9%) 58/115 (50.4%)
Immunoglobulin A Measurement
Low 0/134 0/134 0/132
High 64/119 (53.8%) 62/116 (53.4%) 62/113 (54.9%)
Experimental use!
WebR is a tool allowing you to run R code in the web browser. Modify the code below and click run to see the results. Alternatively, copy the code and click here to open WebR in a new tab.
Code
library(dplyr)library(tern)adsl <- random.cdisc.data::cadsladlb <- random.cdisc.data::cadlb# Ensure character variables are converted to factors and empty strings and NAs are explicit missing levels.adsl <-df_explicit_na(adsl)adlb <-df_explicit_na(adlb)adlb_f <- adlb %>%filter(ONTRTFL =="Y", ANRIND !="<Missing>") %>%var_relabel(PARAM ="Laboratory Test",ANRIND ="Direction of Abnormality" )
shinylive allow you to modify to run shiny application entirely in the web browser. Modify the code below and click re-run the app to see the results. The performance is slighly worse and some of the features (e.g. downloading) might not work at all.