Skip to contents

Generate Samples with a Variety of Probability Distributions

Usage

samplezoo(name)

Arguments

name

A character string specifying the dataset size. The three dataset sizes are:

  • small: Generates a data frame with 100 samples per distribution.

  • medium: Generates a data frame with 1,000 samples per distribution.

  • large: Generates a data frame with 10,000 samples per distribution.

Value

A dataset containing variables with common distributions.

Details

The distributions included in each data frame are:

  • norm: Normal distribution with mean and standard deviation parameters.

  • norm2: Slight variation of the normal distribution.

  • norm3: Another slight variation of the normal distribution.

  • binom: Binomial (Bernoulli) distribution.

  • neg: Negative binomial distribution.

  • pois: Poisson distribution.

  • exp: Exponential distribution.

  • unif: Uniform distribution.

  • beta: Beta distribution.

  • gamma: Gamma distribution.

  • chisq: Chi-squared distribution.

  • t_dist: Student's t-distribution.

Examples

small_data <- samplezoo("small")
medium_data <- samplezoo("medium")
large_data <- samplezoo("large")