Updates the reference and comparison Treatments when the selected Treatment variable changes
arm_ref_comp_observer(
session,
input,
output,
id_ref = "Ref",
id_comp = "Comp",
id_arm_var,
data,
arm_ref_comp,
module,
on_off = shiny::reactive(TRUE),
input_id = "buckets",
output_id = "arms_buckets"
)Returns a shinyvalidate::InputValidator which checks that there is at least one reference
and comparison arm
(environment)
shiny session
(character)
shiny input
(character)
shiny input
(character)
id of reference Treatment input UI element
(character)
id of comparison group input UI element
(character)
id of Treatment variable input UI element
(reactive or data.frame)
dataset used to validate Treatment reference inputs and
set id_ref input.
(unknown)
Treatment reference and compare variables provided as a
nested list where each Treatment variable corresponds a list specifying the default levels for the
reference and comparison treatments.
(character)
name of the module where this is called (this is only used
to produce more informative error messages)
(logical)
A reactive that can be used to
stop the whole observer if FALSE.
(character)
unique id that the buckets will be referenced with.
(character)
name of the UI id that the output will be written to.