CWWhitney / calibration_app

Materials for the "Calibration Training" Shiny app for University of Bonn
GNU General Public License v3.0
0 stars 0 forks source link

Prevent Lower90 > Upper90 range responses #11

Closed mthomas-ketchbrook closed 2 years ago

mthomas-ketchbrook commented 2 years ago

We should prevent the submission of responses to "Range" type questions when the user has entered a value for "Lower 90" that is greater than the value they entered for "Upper 90"

mthomas-ketchbrook commented 2 years ago

Closed afdd6b67a2cb7e4ac518ce05f6d11d9f7758e11b

We actually prevented "Lower90" >= "Upper90" (said another way, we forced "Lower90" < "Upper90"). We found that Lower90 == Upper90 resulted in infinite relative error values.

mthomas-ketchbrook commented 2 years ago

Launch a modal instead of shiny::req()

mthomas-ketchbrook commented 2 years ago

Lower Bound == Upper Bound results in an Inf value for Relative Error.

We should not allow Lower Bound == Upper Bound.

image

mthomas-ketchbrook commented 2 years ago

Closed 6f642025341d7bbd19d532d23461a9b9b9737cfd