tnormalmix: Constructor for tnormalmix class

tnormalmixR Documentation

Constructor for tnormalmix class

Description

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

Usage

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

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).

Value

An object of class “tnormalmix”.

Examples

tnormalmix(c(0.5,0.5),c(0,0),c(1,2),c(-10,0),c(0,10))


stephens999/ashr documentation built on May 16, 2024, 3:10 a.m.