| Type: | Package |
| Title: | Interactive Tool for Statistics and Probability |
| Version: | 0.1.1 |
| Depends: | R (≥ 4.1.0) |
| Description: | A Shiny application designed to support the learning of basic concepts in statistics and probability. The tool provides an interactive interface that allows students to explore and visualize different statistical concepts intuitively, including descriptive statistics for continuous and qualitative variables, and probability distributions. |
| License: | GPL-3 |
| Imports: | descriptr, DescTools, dplyr, ggplot2, magrittr, mixdist, RColorBrewer, readxl, rlang, shiny, shinyBS, shinydashboard, shinyjs, shinyWidgets, tibble, tidyr, colourpicker, DT, stats |
| Suggests: | testthat (≥ 3.0.0) |
| Encoding: | UTF-8 |
| Config/testthat/edition: | 3 |
| Config/roxygen2/version: | 8.0.0 |
| NeedsCompilation: | no |
| Packaged: | 2026-05-30 14:09:20 UTC; jdelahoz |
| Author: | Javier De La Hoz Maestre
|
| Maintainer: | Javier De La Hoz Maestre <jdelahoz@unimagdalena.edu.co> |
| Repository: | CRAN |
| Date/Publication: | 2026-05-30 14:50:07 UTC |
Frequency Table for Categorical Data
Description
Computes a frequency table for a categorical (factor) variable, including absolute frequency, cumulative frequency, relative frequency percentage, and cumulative relative frequency percentage.
Usage
ST_freq_factor(data, variable)
Arguments
data |
A |
variable |
Unquoted name of the column (factor) in |
Value
A data.frame with five columns: Levels,
Frequency, Cum.Frequency, Percent, and
Cum.Percent.
Examples
ST_freq_factor(iris, Species)
Frequency Table for Continuous Data
Description
Computes a frequency table for a continuous (numeric) variable by dividing the data range into equal-width intervals (bins).
Usage
ST_freq_numeric(data, variable, bins = 5)
Arguments
data |
A |
variable |
Unquoted name of the numeric column in |
bins |
A positive integer giving the number of intervals into
which the data range is divided. Defaults to |
Value
A data.frame with seven columns: lower,
upper, midpoint, frequency, cumulative,
freq_percent, and cum_percent.
Examples
ST_freq_numeric(mtcars, mpg, bins = 5)
Launch the StatisticTeach1 Shiny Application
Description
Opens the interactive Shiny interface for exploring descriptive statistics and probability distributions.
Usage
runStatisticTeach1(
host = getOption("shiny.host", "127.0.0.1"),
port = NULL,
launch.browser = interactive()
)
Arguments
host |
The IPv4 address that the application should listen on.
Defaults to the |
port |
The TCP port that the application should listen on.
If |
launch.browser |
Logical. If |
Value
No return value, called for its side effect of launching a Shiny application.
Examples
if (interactive()) {
runStatisticTeach1()
}