This repository contains the code for R Shiny apps I have created, mostly for the purpose of teaching and learning statistics. Currently, the web apps are only accessible within the GVSU network, so sharing the code is the only way I have of sharing them outside the university. I have organized them as follows.
This is a tool for starting to learn coding your own apps. It contains step-by-step instructions for making a simple app that plots the normal density curve. The instructions are an R Markdown file that contains several Shiny apps (code and web apps) at the different stages of development.
This folder contains several apps that are designed for an introductory course in applied statistics. These apps include:
samp_dist_samp_propSampling distribution of the sample proportionci_propConfidence interval for a population proportionht_propHypothesis test for a population proportionquant_descrNumerical and graphical summaries for the distribution of a quantitative variableguess_sdGiven four histograms/boxplots and four standard deviation values, can you match the distribution to the standard deviation? (made by Suchir Gupta)cltThe sampling distribution of the sample mean and the Central Limit Theoremstd_norm"Forward" and "Backward" calculations for the standard normal distributiont_distComparing the t distribution to the standard normal distribution (and t* to z*)ci_meanConfidence intervals for a population meanht_meanHypothesis tests for a population meanchisq_testChi-squared test for a two-way tableslope_interceptSlope-intercept form of a lineleast_squaresThe least squares regression line has the smallest sum of squared residuals out of all lines.two_sample_appsSimulating independent two-group data; confidence intervals and hypothesis tests for a difference in population meanstesting_errorsType 1 and 2 errors and power illustrated through simulation in the two-sample t test context
This folder contains apps I have used in my courses in Regression and Design of Experiments, both at the undergraduate and graduate levels. The apps include:
slr_modelSimulate from the simple linear regression model. The focus is on the difference between the parameters and their estimates and on the differences between the errors and the residuals.power_curvePower curve for the two-sample t test, focusing on its dependence on the effect size, standard deviation, sample size, and significance levelnorm_quant_plotProduces normal quantile plots for simulated data from different distributions (normal and non-normal) and explains what is plotted on the x- and y-axesleverageDisplays how leverage is a measure of the statistical distance of the x-values for an individual from the center of the x-values for the dataset, focusing on the case of two explanatory variablesmodel_selShows the bias/variance tradeoff involved in model selection. Specifically, underfitting can lead to bias in regression coefficient estiamtes and overfitting can lead to increased variance.1wayrandomFocuses on the difference between the statistical properties of fixed and random effects in one-way models3wayANOVAShows the effects of each term in the three-way factorial model on the cell meanssim2factorUses simulation to explore the differences between two-factor models with crossed/nested and fixed/mixed/random factors
Contains Shiny apps about other subjects, including:
spelling_appCan you choose between correctly and incorrectly spelled versions of 21 difficult words?trig_unit_circleGeometric interpretation of the sine and cosine functions using a circle with radius of one