Learn R Programming

extras (version 0.7.3)

ran_skewnorm: Skew Normal Random Samples

Description

Skew Normal Random Samples

Usage

ran_skewnorm(n = 1, mean = 0, sd = 1, shape = 0)

Value

A numeric vector of the random samples.

Arguments

n

A non-negative whole number of the number of random samples to generate.

mean

A numeric vector of the means.

sd

A non-negative numeric vector of the standard deviations.

shape

A numeric vector of shape.

See Also

Other ran_dist: ran_bern(), ran_beta_binom(), ran_binom(), ran_gamma(), ran_gamma_pois(), ran_gamma_pois_zi(), ran_lnorm(), ran_neg_binom(), ran_norm(), ran_pois(), ran_pois_zi(), ran_student()

Examples

Run this code
if (FALSE) { # requireNamespace("sn")
ran_skewnorm(10, shape = -1)
ran_skewnorm(10, shape = 0)
ran_skewnorm(10, shape = 1)
}

Run the code above in your browser using DataLab