Learn R Programming

norMmix (version 0.2-0)

sllnorMmix: 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)

Value

double. See description.

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.

Examples

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

Run the code above in your browser using DataLab