Learn R Programming

ashr (version 2.2-63)

unimix: Constructor for unimix class

Description

Creates an object of class unimix (finite mixture of univariate uniforms)

Usage

unimix(pi, a, b)

Value

an object of class unimix

Arguments

pi

vector of mixture proportions

a

vector of left hand ends of uniforms

b

vector of right hand ends of uniforms

Details

None

Examples

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

Run the code above in your browser using DataLab