infConstrMixMod: Main function for inference

Description Usage Arguments Value

Description

This function evaluates the cumulative distribution of a univariate Gaussian distribution

Usage

1
2
infConstrMixMod(mix, Xdata, constr, K = 100, thr = Inf, constrType,
  niwpr, ...)

Arguments

mix

Mixture type: one of "tmog" and "motg"

Xdata

p-by-N matrix where N is the total number of observations and p is the dimension

constr

function to test whether observation belongs in a space. Must input Xdata and returns vector of TRUE/FALSE

K

maximum number of clusters

thr

vector of number of rejections per observations.

constrType

one of "simple" and "complex". If "simple", follow by lower and upper bounds.

niwpr

list of niw prior. For one dimensional, must include m0, v0, a0, b0. For more than one dimension, must include mu0, lam, Phi, and nu.

...

pass lower and upper bounds of the constraint if type is "simple". Can also pass burnIn and numIter (default burnIn = 2000 and numIter = 5000)

Value

samples from posterior distribution


pasudyan/ConstrMixMod documentation built on May 10, 2019, 8:26 a.m.