powered by
sllnorMmix() returns a number, the log-likelihood of the data x, given a normal mixture obj.
sllnorMmix()
x
obj
sllnorMmix(x, obj)
double. See description.
double
data matrix.
matrix
an R object of class "norMmix".
"norMmix"
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.
llnorMmix
set.seed(2019) x <- rnorMmix(400, MW27) sllnorMmix(x, MW27) # -1986.315
Run the code above in your browser using DataLab