SelectModel | R Documentation |
Select best PRECAST model from candidated models with different number of clusters.
## S3 method for class 'SeqK_PRECAST_Object'
SelectModel(obj, criteria = 'MBIC',pen_const=1, return_para_est=FALSE)
## S3 method for class 'PRECASTObj'
SelectModel(obj, criteria = 'MBIC',pen_const=1, return_para_est=FALSE)
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. |
Nothing
Return a revised PRECASTObj object.
nothing
Wei Liu
None
data(PRECASTObj)
PRECASTObj <- SelectModel(PRECASTObj)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.