Learn R Programming

psycho (version 0.4.91)

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.

mean

vector of means.

sd

vector of standard deviations.

method

"qnorm" or "average".

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