| loglik(mclust) | R Documentation |
loglik(tree, data, Vinv)
tree |
an "mhtree" object.
|
data |
the data used to produce the "mhtree" object.
|
Vinv |
approximate recoprocal hypervolume of the region from which the data is drawn.
The default (for those methods that need this quantity) is determined by the
function hypvol.
|
nmerge |
the number of clusters merged at each stage. |
Gives the loglikelihood for each stage of model-based hierarchical clustering.
The value given is equal to the loglikelihood up to an additive constant.
For those models in which they arise, indeterminate terms are
assigned the value -k*log(volume), where k is the number of observations
associated with the term.
If you scaled your data before using mhtree, be
sure to use the same scaling when supplying the data to loglik.
data(iris) loglik(mhtree(iris[,1:4]),iris[,1:4])