rnorm_perfect: Perfect Normal Distribution.
Description
Generates a sample of size n with a near-perfect normal distribution.
Usage
rnorm_perfect(n, mean = 0, sd = 1, method = "qnorm", iter = 10000)
Arguments
n
number of observations. If length(n) > 1, the length is taken to be the number required.
sd
vector of standard deviations.
iter
number of iterations (precision).
Examples
Run this code# NOT RUN {
library(psycho)
x <- rnorm_perfect(10)
plot(density(x))
# }
Run the code above in your browser using DataLab