MyNixOS website logo
Description

Statistical Test App with R 'shiny'.

Provides a user-friendly R 'shiny' app for performing various statistical tests on datasets. It allows users to upload data in numerous formats and perform statistical analyses. The app dynamically adapts its options based on the selected columns and supports both single and multiple column comparisons. The app's user interface is designed to streamline the process of selecting datasets, columns, and test options, making it easy for users to explore and interpret their data. The underlying functions for statistical tests are well-organized and can be used independently within other R scripts.

vvdoctor

R-CMD-check

CodeFactor

vvdoctor is an R package/Shiny app that provides a user-friendly interface for data analysis. It allows users to upload data files, visualize the data, perform statistical tests, and interpret the results.

The app is currently live on shinyapps.io, see: https://edulytics.shinyapps.io/vvdoctor/

Usage

## Install the app
devtools::install_github("vusaverse/vvdoctor")
library(vvdoctor)

## run the app
vvdoctor::run_vvdoctor()
  • Uploading Data Files: Click on the "Browse" button to select and upload your data file in CSV or Excel format.

  • Displaying the Dataframe: Once the data file is uploaded, the app will display the data as a dataframe. You can explore the data by scrolling through the table or using the search and filter options.

  • Generating a Histogram: To generate a histogram of a specific variable, select a numeric dependent variable from the dropdown menu. The histogram will be displayed, allowing you to visualize the distribution of the data.

  • Choosing Dependent and Independent Variables: To perform statistical tests, select the dependent and independent variables from the respective dropdown menus. The available variables will be automatically populated based on the uploaded data.

  • Statistical Test Options: Once the variables are selected, the app will provide a list of statistical test options, such as t-tests, ANOVA, or correlation analysis. Choose the desired test and click on the "Run Test" button. The output of the test will be displayed, including the test statistic, p-value, and any additional relevant information.

Supported File Extensions

Currently, the following file types are supported:

Full File Type NameFull Extension NamePackageRead FunctionParsable Arguments
R Data File.RDatabasereadRDSNone
ASCII Text File.ascutilsread.tableNone
Comma Separated Values File.csvutilsread.csvsep, header
Apache Feather File.featherfeatherread_featherNone
Fixed-Size File.fstfstread_fstNone
Apache Parquet File.parquetarrowread_parquetNone
R Data File.rdabasereadRDSNone
R Data File.rdsbasereadRDSNone
SPSS Data File.savhavenread_savNone
Tab Separated Values File.tsvutilsread.delimsep, header
Text File.txtutilsread.delimsep, header
Microsoft Excel File.xlsxreadxlread_excelNone

Decision Tree for Statistical Test Selection

Based on the characteristics of the input data, the vvdoctor app uses the following decision tree to select the appropriate statistical test:

Decision Tree Flowchart

This flowchart illustrates the process of selecting a statistical test based on the class of independent/dependent variables, whether the test is paired or unpaired, and whether the data is normally distributed.

Overview of Implemented Statistical Test

The table below serves as a reference for understanding the logic behind the app's functionality, showcasing how different statistical tests are executed through various R packages and functions.

Statistical Test NameR PackageR Function (from the package)
Sign TestDescToolsSignTest()
Wilcoxon Signed Rank Teststatswilcox.test()
Mann-Whitney U Teststatswilcox.test()
Kruskal-Wallis Teststatskruskal.test()
One Sample t-teststatst.test()
Paired t-teststatst.test()
Independent Samples t-teststatst.test()
Repeated Measures ANOVAezezANOVA()
One-way ANOVAstatsaov()
Chi-Square Goodness-of-Fit and Binomial Teststatschisq.test()
McNemar's Testexact2x2exact2x2()
Chi-Square Test for Independence and Fisher's Exact Teststatschisq.test()
Bhapkar's Testirrbhapkar()

Example

Below is a screenshot of an example in vvdoctor.

example

Metadata

Version

0.0.1

License

Unknown

Platforms (77)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-freebsd
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64-windows
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows