tnormalmix function

Constructor for tnormalmix class

Constructor for tnormalmix class

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

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

Returns

An object of class tnormalmix .

Examples

tnormalmix(c(0.5,0.5),c(0,0),c(1,2),c(-10,0),c(0,10))
  • Maintainer: Peter Carbonetto
  • License: GPL (>= 3)
  • Last published: 2023-08-21