rmix: rmix

Description Usage Arguments Value Author(s) Examples

View source: R/r23.R

Description

Creates a random sample from a normal mixture distribution with two components.

Usage

1
rmix(n, mu1, s1, mu2, s2, p1)

Arguments

n

size of random sample

mu1

mean of first component

s1

standard deviation of first component

mu2

mean of second component

s2

standard deviation of second component

p1

proportion of values in the first component

Value

A vector of n numeric values from a sample mixture distribution.

Author(s)

Michelle Winerip, Garrick Wallstrom, Joshua LaBaer

Examples

1
rmix(30,5,1,10,1.2,.95) 

bimixt documentation built on May 2, 2019, 3:31 p.m.