Learn R Programming

ABACUS (version 1.0.0)

shiny_dnorm_dt: Shiny App to Explore Properties of Normal and Student's t Distributions

Description

An interactive Shiny app to demonstrate Normal and Student's t distributions.

Usage

shiny_dnorm_dt()

Arguments

Value

The outcomes are presented in two tabs.

Probability Density Function

displays the probability density function of the standard Normal distribution (red) and t distribution (blue).

Distribution & Probability

contains the plot for the probablity density function of the standard Normal distribution and Student's t distribution with given degrees of freedom.

Details

The interactive Shiny app demonstrates the properties of Normal and Student's t distributions. The app considers parameters (mean and standard deviation) of the standard Normal distribution along with Student's t distribution given degrees of freedom.

The left panel includes the user inputs for Parameters of standard Normal distribution (mean = 0, sd = 1) and Student's t distribution (degrees of freedom), and Probability with options to change cumulative probability and tails of probability. To alter the input values, move the point on the slider for the degrees of freedom of t distribution and explore the changes in different tabs (see below).

See Also

Function in base R for normal distribution, including dnorm, pnorm, qnorm, rnorm dt, pt qt, rt

Examples

Run this code
# NOT RUN {
if(interactive()){
    library(ggplot2)
    library(shiny)
    library(ABACUS)
    # Run shiny app
    shiny_dnorm_dt()
}

# }

Run the code above in your browser using DataLab