Closed ashokkrish closed 1 week ago
Thank you for working on this @mwals360 . I have couple of minor changes on this one
Change rth to r^th (italicize r and take the th as a superscript) for both radioButton items.
@bryce-carson Here is an example with solutions, you can use these as defaults instead of 12345.
@bryce-carson
For Negative Binomial Distribution validate the following numericInputs()
Number of successes (r) (Validation: Non-empty, Positive integers only, must be greater than 0) Probability of Success (p) (Validation: Non-empty, between 0 and 1 only, inclusive)
Number of Successes (x) (Validation: Non-empty, Positive integers only) - THIS HEADER IS INCORRECT
Where appropriate also validate
Number of Successes (x1) (Validation: Non-empty, Positive integers only) - THIS HEADER IS INCORRECT Number of Successes (x2) (Validation: Non-empty, Positive integers only) - THIS HEADER IS INCORRECT
Further validate that x1 is less than or equal to x2.
If any of the numericInputs is left blank we need to see this instantly
If the user enters a negative value for r
If the user enters a decimal value for r
If the user enters an invalid value for p
If the user enters an invalid value for x, x1, or x2
In addition if the user clicks the Calculate button the display appropriate messages (bolded and in red on the mainPanel()). For e.g.
Number of Successes (r) must be a positive integer
Probability of Success (p) must be between 0 and 1
@bryce-carson
Under Probability Distributions we currently have
To this list add Negative Binomial and make inline = FALSE so the radio buttons are listed vertically.
Have the following numericInputs()
Number of successes (r) (Validation: Non-empty, Positive integers only, must be greater than 0) Probability of Success (p) (Validation: Non-empty, between 0 and 1 only, inclusive)
Followed by
Followed by a radio button toggle
Selecting either one of the radio buttons would reveal a numericInput labelled
Number of Successes (x) (Validation: Non-empty, Positive integers only)
If the user selects
reveal two numericInputs labelled
Number of Successes (x1) (Validation: Non-empty, Positive integers only) Number of Successes (x2) (Validation: Non-empty, Positive integers only)
Further validate that x1 is less than or equal to x2.
Finally we will have