Title: | Statistical Test App with R 'shiny' |
---|---|
Description: | 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. |
Authors: | Tomer Iwan [aut, cre],
Corneel Den Hartogh [ctb] |
Maintainer: | Tomer Iwan <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.0.1 |
Built: | 2025-01-28 03:24:03 UTC |
Source: | https://github.com/vusaverse/vvdoctor |
App Server
app_server(input, output, session)
app_server(input, output, session)
input |
The input object from the Shiny app. |
output |
The output object from the Shiny app. |
session |
The session object from the Shiny app. |
No return value, called for side effects
Determines the appropriate statistical test based on the characteristics of the dependent and independent variables.
choose_statistical_test(dependent_var, independent_var)
choose_statistical_test(dependent_var, independent_var)
dependent_var |
The dependent variable. |
independent_var |
The independent variable. |
The name of the chosen statistical test.
This function creates a histogram plot for a numeric dependent variable.
create_dependent_variable_histogram(dependent_var)
create_dependent_variable_histogram(dependent_var)
dependent_var |
A numeric vector representing the dependent variable. |
No return value, the function creates a histogram plot.
This function determines the type of the dependent variable based on its data type and distribution.
determine_dependent_variable(dependent_var)
determine_dependent_variable(dependent_var)
dependent_var |
A vector representing the dependent variable. |
A character string indicating the type of the dependent variable.
This function determines the type of the independent variable based on its data type and the number of unique values.
determine_independent_variable(independent_var)
determine_independent_variable(independent_var)
independent_var |
A vector representing the independent variable. |
A character string indicating the type of the independent variable.
This function launches a Shiny application that allows users to upload data and perform various statistical tests on the dataset. Users can select the dependent and independent variables, choose the appropriate statistical test, and view the results.
diagnose()
diagnose()
NULL The function does not return a value, but launches the Shiny app.
if (interactive()) { diagnose() }
if (interactive()) { diagnose() }
Helper function to display a data table in a Shiny app.
display_data_table(data)
display_data_table(data)
data |
The data frame to display. |
A Shiny output object representing the data table
This function determines the class of the selected variable and additional information.
get_variable_class_info(variable)
get_variable_class_info(variable)
variable |
The selected variable data. |
A character vector containing the variable class and additional information.
This function performs the appropriate statistical test based on the user's input.
perform_statistical_test(data, input)
perform_statistical_test(data, input)
data |
A data frame containing the variables. |
input |
A list containing the user's input, including the selected statistical test, dependent variable, independent variable, identifier variable, and input mean. |
The result of the statistical test.
This function starts the Shiny app, which allows users to upload data and perform statistical tests on the dataset.
run_vvdoctor()
run_vvdoctor()
No return value, the function runs the Shiny app
if (interactive()) { run_vvdoctor() }
if (interactive()) { run_vvdoctor() }