A: Drug X B: Placebo C: Combination
(N=134) (N=134) (N=132)
—————————————————————————————————————————————————————————————————————————————————————
Total patient-years at risk 162.4 103.9 172.6
Number of adverse events observed 78 104 67
AE rate per 100 patient-years 48.03 100.14 38.82
95% CI (37.37, 58.69) (80.89, 119.38) (29.53, 48.12)
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.
A: Drug X B: Placebo C: Combination
(N=134) (N=134) (N=132)
—————————————————————————————————————————————————————————————————————————————————————
Total patient-years at risk 162.4 103.9 172.6
Number of adverse events observed 78 104 67
AE rate per 100 patient-years 48.03 100.14 38.82
95% CI (37.97, 59.94) (81.82, 121.34) (30.09, 49.30)
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.
library(dplyr)library(tern)adsl <- random.cdisc.data::cadsladaette <- random.cdisc.data::cadaette# Ensure character variables are converted to factors and empty strings and NAs are explicit missing levels.adsl <-df_explicit_na(adsl)adaette <-df_explicit_na(adaette)anl <- adaette %>% dplyr::filter(PARAM =="Time to first occurrence of any adverse event") %>% dplyr::mutate(is_event = CNSR ==0) %>% dplyr::mutate(n_events =as.integer(is_event))
library(teal.modules.clinical)## Data reproducible codedata <-teal_data()data <-within(data, {library(dplyr) ADSL <- random.cdisc.data::cadsl ADAETTE <- random.cdisc.data::cadaette# Ensure character variables are converted to factors and empty strings and NAs are explicit missing levels. ADSL <-df_explicit_na(ADSL) ADAETTE <-df_explicit_na(ADAETTE) ADAETTE <- ADAETTE %>%filter(PARAMCD %in%c("AETTE1", "AETTE2", "AETTE3")) %>%mutate(is_event = CNSR ==0) %>%mutate(n_events =as.integer(is_event))})datanames <-c("ADSL", "ADAETTE")datanames(data) <- datanames
Warning: `datanames<-()` was deprecated in teal.data 0.7.0.
ℹ invalid to use `datanames()<-` or `names()<-` on an object of class
`teal_data`. See ?names.teal_data
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.