sllnorMmix: Simple wrapper for Log-Likelihood Function or Multivariate...

View source: R/llnorMmix.R

sllnorMmixR Documentation

Simple wrapper for Log-Likelihood Function or Multivariate Normal Mixture

Description

sllnorMmix() returns a number, the log-likelihood of the data x, given a normal mixture obj.

Usage

sllnorMmix(x, obj)

Arguments

x

data matrix.

obj

an R object of class "norMmix".

Details

Calculates log-likelihood of a dataset, x, given a normal mixture model; just a simplified wrapper for llnorMmix. Removes functionality in favor of ease of use.

Value

double. See description.

Examples

set.seed(2019)
x <- rnorMmix(400, MW27)
sllnorMmix(x, MW27) # -1986.315

norMmix documentation built on Sept. 11, 2024, 7:47 p.m.