Skip to contents

Cluster prediction for multivariate observations based on Mixture of Gaussian Graphical Models estimated by mixGGM.

Usage

# S3 method for class 'mixGGM'
predict(object, newdata, ...)

Arguments

object

An object of class 'mixGGM' resulting from a call to mixGGM.

newdata

A data frame or matrix giving the data. If missing the clustering data obtained from the call to mixGGM are classified.

...

Further arguments passed to or from other methods.

Value

Returns a list of with the following components:

classification

a factor of predicted cluster labels for newdata.

z

a matrix whose [i,k]th entry is the probability that observation i in newdata belongs to the kth cluster.

See also