Select best PRECAST model from candidated models with different number of clusters.

# S3 method for SeqK_PRECAST_Object
SelectModel(obj, criteria = 'MBIC',pen_const=1, return_para_est=FALSE)
  # S3 method for PRECASTObj
SelectModel(obj, criteria = 'MBIC',pen_const=1, return_para_est=FALSE)

Arguments

obj

a SeqK_PRECAST_Object or PRECASTObj object after PRECAST model fitting.

criteria

a string, specify the criteria used for selecting the number of clusters, supporting "MBIC", "BIC" and "AIC".

pen_const

an optional positive value, the adjusted constant used in the MBIC criteria.

return_para_est

an optional logical value, whether return the other paramters' estimators in PRECAST.

Details

Nothing

Value

Return a revised PRECASTObj object.

Author

Wei Liu

Note

nothing

See also

None

Examples


  data(PRECASTObj)
  PRECASTObj <- SelectModel(PRECASTObj)