Learn R Programming

HelpersMG (version 6.2)

r2norm: Random generation for Gaussian distributions different at left and right

Description

Random generation for Gaussian distributions different at left and right

Usage

r2norm(n, mean = 0, sd_low = 1, sd_high = 1)

Value

r2norm returns random numbers

Arguments

n

number of observations.

mean

vector of means

sd_low

vector of standard deviations below the mean.

sd_high

vector of standard deviations above the mean.

Author

Marc Girondot marc.girondot@gmail.com

Details

r2norm returns random numbers for Gaussian distributions different at left and right

See Also

Other Distributions: cutter(), dSnbinom(), dbeta_new(), dcutter(), dggamma(), logLik.cutter(), plot.cutter(), print.cutter(), rcutter(), rmnorm(), rnbinom_new()

Examples

Run this code
if (FALSE) {
n <- r2norm(1000, mean=25, sd_low=2, sd_high=10)

hist(n)
}

Run the code above in your browser using DataLab