mixnorm: Create a Mixture of Normal Distributions

Description Usage Arguments Author(s) Examples

View source: R/mixnorm.R

Description

Creates a mixture of normal distributions.

Usage

1
  mixnorm(n, p, mu, sd)

Arguments

n

number of observations. If length(n) > 1, the length is taken to be the number required.

p

vector of probabilities.

mu

vector of means.

sd

vector of standard deviations.

Author(s)

Tyler Hunt tyler@psychoanalytix.com

Examples

1
2
x = mixnorm(100, c(.50, .15, .35), c(-3, 0, 3), c(3,3,3))
hist(x)

JackStat/CompPack documentation built on May 7, 2019, 10:16 a.m.