-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathui.R
66 lines (62 loc) · 2.48 KB
/
ui.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/usr/bin/Rscript
fluidPage(
headerPanel("Sample Size / Power calculation"),
tabsetPanel(
tabPanel("Survival",
sidebarLayout(
sidebarPanel(
fluidRow(
column(4,
numericInput("time_conventional", "Median Free Time Conv.", 14),
numericInput("time_experimental", "Median Free Time Exp.", 19),
numericInput(inputId="recruitment_time", "Recruitment Time", 36),
numericInput(inputId="follow_up_time", "Follow-up Time", 24),
numericInput(inputId="alpha_sur", "Alpha", value=0.05, step=0.01)
),
column(8,
# Hazard rates.
h6("Hazard Rate Conventional [1/month]:"),
textOutput(outputId="hazard_rate_conventional"),
h6("Hazard Rate Experimental [1/month]:"),
textOutput(outputId="hazard_rate_experimental"),
tags$br(),
# Event rates.
h6("Av. Event Rate Conventional:"),
textOutput(outputId="e_conv"),
h5("Av. Event Rate Experimental:"),
textOutput(outputId="e_exp"),
tags$br(),
# Hazard ratio.
h6("Hazard ratio:"),
textOutput(outputId="hr")
)
)
),
mainPanel(
wellPanel(
plotOutput("plot")
)
)
)
),
tabPanel("Proportion",
sidebarLayout(
sidebarPanel(
fluidRow(
column(4,
numericInput("prop1", "Prop. 1", 0.2, step=0.05),
numericInput("prop2", "Prop. 2", 0.5, step=0.05),
numericInput(inputId="alpha_prop", "Alpha", value=0.05, step=0.01)
)
)
),
mainPanel(
wellPanel(
plotOutput("n")
)
)
)
)
),
h4("Developed by M. Hediger")
)