rnormmix: sample from a normal mixture

Description Usage Arguments Details Value Author(s) Examples

View source: R/normmixture.R

Description

sample from a normal mixture

Usage

1
rnormmix(n, theta, shuffle = TRUE)

Arguments

n

size

theta

parameters

shuffle

shuffle return vectors or keep nulls and alternative ordered (null, alts)

Details

details follow

Value

n samples from a normal mixture with parameters theta

Author(s)

mvaniterson

Examples

1
2
3
n <- 2000
theta <- c(0.8, 0, 1, 0, 4, 1)
x <- rnormmix(n, theta)

bacon documentation built on Nov. 8, 2020, 4:54 p.m.