The goal of shinystats is to make shiny apps that explain statistical concepts. The apps are designed to be light-weight (no extra packages) and fast so that they can be used in quarto presentations with shinylive.
You can install shinystats from GitHub with:
# install.packages("pak")
pak::pak("biostats-r/shinystats")
To use shinystats in a quarto document with shinylive, you also need to do the following:
Install shinylive
from CRAN with install.packages("shinylive")
Install shinylive assets with shinylive::assets_ensure()
Add the following to the YAML header of your quarto document:
Shinylive also works with revealjs presentations. Simply substitute html
with revealjs
in the YAML header.
```{shinylive-r}
#| label: power-app
#| standalone: true
#| viewerHeight: 600
shinystats::ar_app()
```
Here is a sample quarto document that uses shinystats.
---
title: "shinystats demo"
format:
html:
resources:
- shinylive-sw.js
filters:
- shinylive
---
App should appear below. Might take a while to load.
```{shinylive-r}
#| label: ar-app
#| standalone: true
#| viewerHeight: 600
shinystats::ar_app()
```
climate_effect_app()
- visualise effect sizes with climate dataone_sided_z_app()
- power of a z-testt_test_power_app()
- power of a t-testt_test_sim_app()
- power of a t-test by simulationmisreported_cohens_d_app()
- effect of misreporting Cohen’s dcoef_explain_app()
- how to interpret the coefficients of a two-way ANOVAf_test_app()
- interpreting the F statisticregression_line_ss_app()
- fit a regression and find the sum of squaressample_app()
- in developmentx_distribution_app()
- shows that it is the distribution of residuals that matterar_app()
- effect of autocorrelation on modelsacf_app()
- how ACF is calculatedacf_pacf_app()
- using ACF and PACF to determine number of AR terms