ashokkrish / CougarStats

5 stars 4 forks source link

Statistical Inference for One Population Standard Deviation (left panel ONLY) #6

Open ashokkrish opened 5 months ago

ashokkrish commented 5 months ago

@samantha-v-brian

When the user selects

image

Currently there are two parameters of interest to choose from

image

I would like to add another parameter of interest to this list and make it look like this

image

It can be achieved by the following code

                radioButtons(
                  inputId      = "popuParameter",
                  label        = strong("Parameter of Interest"),
                  choiceValues = list("Population Mean", 
                                      "Population Standard Deviation", 
                                      "Population Proportion"),
                  choiceNames  = list("Population Mean (\\( \\mu \\)) ", 
                                      "Population Standard Deviation (\\( \\sigma \\)) ", 
                                      "Population Proportion (\\( p\\))"),
                  selected     = "Population Mean", #character(0), #
                  inline       = FALSE), #,width = '1000px'),

Now suppose the user selects

image

We should have two numericInputs called

Sample Size (n) Population Standard Deviation (σ)

Validate the above two fields:

Next we will have a radio button toggle as follows

image

In the user selects Confidence Interval then display the following Confidence Level choices

image

In the user selects Hypothesis Testing then display the following

image

Followed by a numericInput for

Hypothesized Population Mean (σ0) Value

Following that have this

image
sam-vb commented 4 months ago

Hi Ashok! I've added the Population Standard Deviation radio button, as well as conditional panels for Sample Size (n) and Population Standard Deviation (σ). The conditional panels for Inference Types are both functioning per Mike Meyer's previous work.

Can you expand more on the Hypothesized Population Mean value? Additionally, is there a document I can refer to for sample values/formulas/calculations so I can test these new additions?

ashokkrish commented 4 months ago

@samantha-v-brian

Hi Sam,

Thanks for working on this issue. Here are some follow-up requests on this same issue.

Display the following messages

image image

On the mainPanel after all the validation checks out we will print the answer showing all the steps. For now if you can fix the above requests and push the code that'd great.

ashokkrish commented 4 months ago

For the radioButton could you set inline = FALSE? This will set the options as follows

image
sam-vb commented 4 months ago

Hi Ashok!

The above requests have been fixed. I also added main panel error messages for Sample Size Estimation per the task on Google Docs, as I'd missed them previously when implementing validation.

EDIT: commented just as you added the inline request! Will fix right now

EDIT: Fixed and pushed

ashokkrish commented 4 months ago

I am sorry about a minor confusion and it is entirely my fault,

In the radioButton choices it should be image (this needs a fix)

but the numericInput should be image (which is correct now)

In other words Population Standard Deviation is the Parameter of Interest and the Sample Standard Deviation is its point estimate.

sam-vb commented 4 months ago

Not a problem, it was an easy fix. I've pushed the change.