Learn R Programming

ashr (version 2.2-63)

tnormalmix: Constructor for tnormalmix class

Description

Creates an object of class tnormalmix (finite mixture of truncated univariate normals).

Usage

tnormalmix(pi, mean, sd, a, b)

Value

An object of class “tnormalmix”.

Arguments

pi

Cector of mixture proportions (length k say).

mean

Vector of means (length k).

sd

Vector of standard deviations (length k).

a

Vector of left truncation points of each component (length k).

b

Cector of right truncation points of each component (length k).

Examples

Run this code
tnormalmix(c(0.5,0.5),c(0,0),c(1,2),c(-10,0),c(0,10))

Run the code above in your browser using DataLab