Learn R Programming

ashr (version 2.2-63)

normalmix: Constructor for normalmix class

Description

Creates an object of class normalmix (finite mixture of univariate normals)

Usage

normalmix(pi, mean, sd)

Value

an object of class normalmix

Arguments

pi

vector of mixture proportions

mean

vector of means

sd

vector of standard deviations

Details

None

Examples

Run this code
normalmix(c(0.5,0.5),c(0,0),c(1,2))

Run the code above in your browser using DataLab