Skip to contents

The function SelectModel is used to select an optimal solution by given criteria or number of clusters.

Usage

SelectModel(
  obj,
  criteria = c("MBIC", "MAIC", "BIC", "AIC"),
  c_penalty = 1,
  K = NULL
)

# S3 method for iSCMEBObj
SelectModel(
  obj,
  criteria = c("MBIC", "MAIC", "BIC", "AIC"),
  c_penalty = 1,
  K = NULL
)

# S3 method for iSCMEBResObj
SelectModel(
  obj,
  criteria = c("MBIC", "MAIC", "BIC", "AIC"),
  c_penalty = 1,
  K = NULL
)

Arguments

obj

A iSCMEBObj object or iSCMEBResObj object.

criteria

A string, specify the criteria used for selecting the number of clusters, supporting "MBIC", "MAIC", "BIC" and "AIC" ("MBIC" by default).

c_penalty

An optional positive value, the adjusted constant used in the MBIC criteria (1 by default).

K

An optional number of cluster. When K is not null, the iSC.MEB solution with K clusters will be selected, default is NULL.

Value

Returns a revised iSCMEBObj object.

Returns a revised list

Details

iSCMEBResObj is an object that contains all iSC.MEB solution information. It is the output of function fit.iscmeb, which is the body of our algorithm.

Examples

data(iSCMEBObj_toy)
#> Warning: data set 'iSCMEBObj_toy' not found
iSCMEBObj_toy <- SelectModel(iSCMEBObj_toy)