clt: Central Limit Theorem simulation

View source: R/clt.R

cltR Documentation

Central Limit Theorem simulation

Description

Central Limit Theorem simulation

Usage

clt(
  dist,
  n = 100,
  m = 100,
  norm_mean = 0,
  norm_sd = 1,
  binom_size = 10,
  binom_prob = 0.2,
  unif_min = 0,
  unif_max = 1,
  expo_rate = 1
)

Arguments

dist

Distribution to simulate

n

Sample size

m

Number of samples

norm_mean

Mean for the normal distribution

norm_sd

Standard deviation for the normal distribution

binom_size

Size for the binomial distribution

binom_prob

Probability for the binomial distribution

unif_min

Minimum for the uniform distribution

unif_max

Maximum for the uniform distribution

expo_rate

Rate for the exponential distribution

Details

See https://radiant-rstats.github.io/docs/basics/clt.html for an example in Radiant

Value

A list with the name of the Distribution and a matrix of simulated data

Examples

clt("Uniform", 10, 10, unif_min = 10, unif_max = 20)


radiant-rstats/radiant.basics documentation built on Jan. 19, 2024, 12:14 p.m.