# Getting Started with StatisticTeach1

## Introduction

StatisticTeach1 is an interactive Shiny application for teaching and learning basic concepts in statistics and probability. It provides visual, hands-on exploration of:

- Descriptive statistics for continuous and categorical variables
- Frequency tables
- Probability distributions (discrete and continuous)

## Installation

    install.packages("StatisticTeach1")

## Launching the App

    library(StatisticTeach1)
    runStatisticTeach1()

This opens the Shiny interface in your default web browser.

## Standalone Functions

Two utility functions are also available outside the app:

### Frequency table for categorical variables

    library(StatisticTeach1)
    #>
    #> To start the Shiny interface, run:
    #>   runStatisticTeach1()
    ST_freq_factor(iris, Species)
    #>       Levels Frequency Cum.Frequency Percent Cum.Percent
    #> 1     setosa        50            50   33.33       33.33
    #> 2 versicolor        50           100   33.33       66.67
    #> 3  virginica        50           150   33.33      100.00

### Frequency table for continuous variables

    ST_freq_numeric(mtcars, mpg, bins = 5)
    #>   lower upper midpoint frequency cumulative freq_percent cum_percent
    #> 1  10.4  15.1    12.75         6          6        18.75       18.75
    #> 2  15.1  19.8    17.45        12         18        37.50       56.25
    #> 3  19.8  24.5    22.15         8         26        25.00       81.25
    #> 4  24.5  29.2    26.85         2         28         6.25       87.50
    #> 5  29.2  33.9    31.55         4         32        12.50      100.00