Skip to content

Commit

Permalink
Included sample sizes of respective nested RCTs
Browse files Browse the repository at this point in the history
  • Loading branch information
kappelmann committed Nov 28, 2019
1 parent ef9561c commit 01ceb9b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
10 changes: 9 additions & 1 deletion server.R
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,21 @@ server <- function(input, output) {

})

output$n_strat <- renderText({
output$n_traditional <- renderText({

temp <- npRCT()
as.character(temp$n_strat)

})


output$n_precision <- renderText({

temp <- npRCT()
as.character(temp$n_total - temp$n_strat)

})

output$n_saved <- renderText({

temp <- npRCT()
Expand Down
13 changes: 11 additions & 2 deletions ui.R
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,17 @@ body <- dashboardBody(
h3("Total Sample Size"),
textOutput("n_total"),

h3("Point of Stratification"),
textOutput("n_strat"),
h3("Sample Sizes of nested RCTs"),

h4("Traditional RCT"),
textOutput("n_traditional"),

icon("chevron circle down", align = "center"),

h4("Precision RCT"),
textOutput("n_precision"),



h3("Saved Sample Size"),
textOutput("n_saved")
Expand Down

0 comments on commit 01ceb9b

Please sign in to comment.