Learn R Programming

MixGHD (version 2.3.7)

predict: Membership prediction for objects of class MixGHD

Description

Cluster membership

Usage

# S4 method for MixGHD
predict(object)

Arguments

object

An S4 object of class MixGHD.

Value

The cluster membership

Examples

Run this code
# NOT RUN {
##loading bankruptcy data
data(bankruptcy)

##model estimation
res=MCGHD(data=bankruptcy[,2:3],G=2,method="kmedoids",max.iter=30)
#rcoefficients of the model
predict(res)

# }

Run the code above in your browser using DataLab