dmdm: Calculate the likelihood of a given mixture of Dirichelet...

Description Usage Arguments Value

Description

Calculate the likelihood of a given mixture of Dirichelet Multiomials model

Usage

1
dmdm(x, phi = NULL, scale = NULL, p = NULL, f, log = TRUE)

Arguments

phi

overdispersion paramater. Value must be in [0,1], where phi=0 is 'pure' Multinomial distribuion and increasing values of phi lead to increasingly over-dispersed distributions.

scale

Scale parameters, vector of matrix.

p

matrix or vector of proportions

f

mixture proportions

log

logical if TRUE (default) return the log likelihood

Value

ll numeric the (log)-likelihood given by the paramaters and data

w numeric matrix with the probabilities that a given observation is belongs to a model-component in f


dwinter/mdm documentation built on May 15, 2019, 4:54 p.m.