Learn R Programming

mcsm (version 1.0)

normbyde: Compare two double-exponentials approximations to a normal distribution

Description

This simple program compares a double-exponential distribution with parameter $a=1$ and a double-exponential distribution with parameter $a!=1$ in their approximation to the standard normal distribution. Quite obviously, this function is not to be used when compared when rnorm.

Usage

normbyde(nsim = 10^3, a = 3)

Arguments

nsim
Number of simulations
a
Scale of the second double-exponential scale

Value

The function produces a tryptich graph with the comparison of the cumulated averages, and both acf graphs.

References

From Chapter 6 of EnteR Monte Carlo Statistical Methods

See Also

rnorm

Examples

Run this code
normbyde(10^4,5)

Run the code above in your browser using DataLab