This repository has been archived by the owner on Feb 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui.R
58 lines (45 loc) · 1.73 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
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Reliability and Measurement Error #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# #
# File contributors: #
# - M.A. Constantin #
# #
# File description: #
# - contains code for the Shiny application UI #
# #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# # # UI.
# HTML template.
ui <- htmlTemplate("www/index.html",
# The plot output.
plot = plotOutput(
outputId = 'appPlot',
height = "600px"
),
# Slider for the true score variance.
true.score.variance = sliderInput(
inputId = "true.score.variance",
label = "True score variance",
min = 0,
max = 100,
value = 100,
step = 1,
width = "100%"
),
# Slider for the measurement error variance.
measurement.error.variance = sliderInput(
inputId = "measurement.error.variance",
label = "Measurement error variance",
min = 0,
max = 100,
value = 50,
step = 1,
width = "100%"
),
# Formula for the reliability.
reliability.formula = withMathJax(
"$$R_{XX} = \\frac{S^{2}_{T}}{S^{2}_{X}} = \\frac{S^{2}_{T}}{S^{2}_{T} + S^{2}_{E}}$$"
)
)
# # # End.