dosm.beta.hist: Simulate and plot the distribution of the sample mean

Description Usage Arguments Value Examples

Description

Simulates a specified number of samples of a specified size from the beta distribution and plots the distribution of sample means with the density of an approximating normal distribution overlaid.

Usage

1
dosm.beta.hist(n, nsim, shape1 = 1, shape2 = 1, ...)

Arguments

n

The size of each simulated sample.

nsim

The number of samples to simulate.

shape1

The first parameter of the beta distribution from which the samples will be drawn.

shape2

The second parameter of the beta distribution.

Value

A named vector with the mean, standard deviation, and variance of the distribution of sample means. Also plots a histogram of the distribution of sample means with an approximating normal distribution overlaid.

Examples

1
dosm.beta.hist(25, 1000, 2, 2) 

mdedge/stfspack documentation built on May 9, 2019, 8:17 a.m.