Learn R Programming

vvdoctor

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:

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.

Copy Link

Version

Install

install.packages('vvdoctor')

Monthly Downloads

157

Version

0.0.2

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Tomer Iwan

Last Published

August 20th, 2025

Functions in vvdoctor (0.0.2)

app_ui

App UI
get_variable_class_info

Get Variable Class Information
app_server

App Server
display_data_table

Display Data Table
choose_statistical_test

Choose Statistical Test
create_dependent_variable_histogram

Create a Histogram Plot for the Dependent Variable
determine_dependent_variable

Determine the Type of Dependent Variable
perform_statistical_test

Perform Statistical Test
diagnose

Diagnose Data with Statistical Tests
determine_independent_variable

Determine the Type of Independent Variable
%>%

Pipe operator
run_vvdoctor

Run the Statistical Test App