RandNorm: Sample from a normal distribution, with random mean and...

Description Usage Arguments Value Examples

View source: R/RandNorm.R

Description

Sample from a normal distribution, with random mean and random std. deviation

Usage

1
RandNorm(n = 50, moy = 100, et = 15)

Arguments

n

scalar value: Number of observations to draw (default = 50)

moy

scalar value: approximate mean of the distribution (default = 100)

et

scalar value: approximate standard deviation of the distribution (default = 15)

Value

vector of observations, quantitative values

Examples

1
2
3
4
x1 <- RandNorm() # use defaults
x2 <- RandNorm(25,50,8) # draw 25 observations from a distribution with mean
     randomly chosen between 50 +/- 1.96 Std. Err. of the mean, and a standard deviation
     randomly chosen from 8 +/- et/3

dco61/isteahMAT104 documentation built on Jan. 2, 2022, 2:24 a.m.