| Title: | Interactive 'Shiny' Apps for Building Statistical Intuition |
| Version: | 0.1.0 |
| Description: | Provides interactive 'Shiny' applications for building intuition in statistics and data science. The apps run locally and use visualization, simulation, and repeated sampling to illustrate topics such as probability distributions, permutation tests, analysis of variance, linear regression, and sums of squares. |
| License: | MIT + file LICENSE |
| Encoding: | UTF-8 |
| RoxygenNote: | 8.0.0 |
| Imports: | dplyr (≥ 1.1.0), ggplot2 (≥ 3.4.0), purrr (≥ 1.0.0), shiny (≥ 1.7.0), tibble (≥ 3.0.0) |
| Depends: | R (≥ 4.1.0) |
| URL: | https://github.com/vbaliga/statsapps, https://vbaliga.github.io/statsapps/ |
| BugReports: | https://github.com/vbaliga/statsapps/issues |
| Suggests: | testthat (≥ 3.0.0) |
| Config/testthat/edition: | 3 |
| NeedsCompilation: | no |
| Packaged: | 2026-07-16 02:11:38 UTC; vikram |
| Author: | Vikram B. Baliga |
| Maintainer: | Vikram B. Baliga <vikram.baliga@ubc.ca> |
| Repository: | CRAN |
| Date/Publication: | 2026-07-23 13:30:02 UTC |
Launch the one-way ANOVA simulator
Description
Opens an interactive Shiny app for exploring how group means, within-group variation, and sample size affect a one-way ANOVA.
Usage
run_anova_app(...)
Arguments
... |
Optional arguments passed to |
Details
All data are simulated in R via rnorm().
Value
run_anova_app() opens the Shiny app locally.
Examples
run_anova_app()
Launch the probability distributions app
Description
Opens an interactive Shiny app for exploring common probability distributions used in BIOL 300.
Usage
run_distributions_app(...)
Arguments
... |
Optional arguments passed to |
Details
All data were simulated and don't come from a specific study.
Value
run_distributions_app() opens the Shiny app locally.
Examples
run_distributions_app()
Launch the simple linear regression app
Description
Opens an interactive Shiny app for exploring how the slope and intercept of a linear model affect fitted values and residuals.
Usage
run_linear_reg_app(...)
Arguments
... |
Optional arguments passed to |
Details
All data were simulated and don't come from a specific study.
Value
run_linear_reg_app() opens the Shiny app locally.
Examples
run_linear_reg_app()
Launch the permutation test app
Description
run_permutation_app() opens an interactive Shiny app that demonstrates how
repeated random reassignment of observations can be used to build a null
distribution for a two-sample permutation test.
Usage
run_permutation_app(...)
Arguments
... |
Optional arguments passed to |
Details
The app uses data on time to mating in female sagebrush crickets from Johnson et al. (1999), as presented in The Analysis of Biological Data by Whitlock and Schluter.
Value
run_permutation_app() opens the Shiny app locally.
References
Johnson, J. C., T. M. Ivy, and S. K. Sakaluk. 1999. Female remating propensity contingent on sexual cannibalism in sagebrush crickets, Cyphoderris strepitans: a mechanism of cryptic female choice. Behavioral Ecology 10: 227-233.
Whitlock, M. C., and D. Schluter. 2020. The Analysis of Biological Data. 3rd ed. W. H. Freeman and Company.
Examples
run_permutation_app()
Launch the sums of squares app
Description
Opens an interactive Shiny app for exploring how total variation can be partitioned into group-level and within-group components in one-way ANOVA.
Usage
run_sums_squares_app(...)
Arguments
... |
Optional arguments passed to |
Value
run_sums_squares_app() opens the Shiny app locally.
Examples
run_sums_squares_app()