rnormmix: sample from a normal mixture

View source: R/normmixture.R

rnormmixR 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)

mvaniterson/bacon documentation built on April 19, 2024, 5:32 p.m.