rnormmix {bacon}R Documentation

sample from a normal mixture

Description

sample from a normal mixture

Usage

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

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

[Package bacon version 1.12.0 Index]