This Shiny app automatically selects and performs the appropriate statistical tests based on the user’s input data and test purpose.

Usage

  1. Select Data Source: Choose between uploading a file or using the provided sample data.

    • To upload a file, select the “Upload File” option and then click on the Upload Data File button to upload a tab-separated file with your data.

    • To use the sample data, select the Sample Data option.

  2. Choose Variable 1 & Variable 2: Select the two variables you want to perform the statistical test on from the drop-down menus.

  3. Choose Test Purpose: Select the purpose of your test from the following options:

    • Compare Means: Tests if there is a significant difference in the means of the two variables.

    • Correlation: Tests if there is a significant correlation between the two variables.

    • Association: Tests if there is a significant association between the two categorical variables.

  4. Use Nonparametric Test: Check this box if you want to use a nonparametric test instead of a parametric test.

  5. Run Test: Click the Run Test button to perform the selected statistical test.

Output

  1. Input Data: Displays the input data table used for the statistical test.

  2. Method Used: Shows the chosen statistical method based on the input data and test purpose.

  3. Reason: Explains the reason for selecting the chosen statistical method.

  4. Statistical Test Results: Presents the results of the statistical test, including the test statistic, p-value, and other relevant information.

Example

  1. Select Sample Data as the data source.

  2. Choose Group as Variable 1 and Value1 as Variable 2.

  3. Choose Compare Means as the test purpose.

  4. Leave the Use Nonparametric Test? checkbox unchecked.

  5. Click the Run Test button.

The output will display the input data table, the chosen statistical method (One-Way ANOVA), the reason for choosing the method, and the results of the statistical test.

sessionInfo

sessionInfo()
## R version 4.2.2 (2022-10-31 ucrt)
## Platform: x86_64-w64-mingw32/x64 (64-bit)
## Running under: Windows 10 x64 (build 19045)
## 
## Matrix products: default
## 
## locale:
## [1] LC_COLLATE=Chinese (Simplified Han)_Hong Kong SAR.utf8 
## [2] LC_CTYPE=Chinese (Simplified Han)_Hong Kong SAR.utf8   
## [3] LC_MONETARY=Chinese (Simplified Han)_Hong Kong SAR.utf8
## [4] LC_NUMERIC=C                                           
## [5] LC_TIME=Chinese (Simplified Han)_Hong Kong SAR.utf8    
## 
## attached base packages:
## [1] stats     graphics  grDevices utils     datasets  methods   base     
## 
## loaded via a namespace (and not attached):
##  [1] digest_0.6.31   R6_2.5.1        jsonlite_1.8.4  evaluate_0.20  
##  [5] cachem_1.0.6    rlang_1.0.6     cli_3.5.0       rstudioapi_0.14
##  [9] jquerylib_0.1.4 bslib_0.4.2     rmarkdown_2.20  tools_4.2.2    
## [13] xfun_0.37       yaml_2.3.7      fastmap_1.1.0   compiler_4.2.2 
## [17] htmltools_0.5.4 knitr_1.42      sass_0.4.5