Description Usage Arguments Details Value References Examples
View source: R/HMMorderselectionfacility.R
This function estimates the number of states of the given HMM data using robust BIC criteria.
1 |
y |
The observed data. |
optionalbic |
Optional variables as a list. Possible options include: |
Kfits: Possible numbers of states. The function will compute the marginal likelihood under each of these numbers, and choose the one with the highest values as the estimated number of states. Default is {2,3,...,6}
Nstart: The number of starting points for the robust BIC. Default is 50.
verbose: Logic variable indicating pritting details or not. Default is FALSE
.
See Manual.pdf in "inst/extdata" folder.
This function returns the estimated number of hidden states through minimizing the BIC, the BIC values of all the possible number of hidden states, and the fitted model parameters under the estimated number of hidden states under the BIC method.
Yang Chen, Cheng-Der Fuh, Chu-Lan Kao, and Samuel Kou (2017+) "Determine the number of states in hidden markov models via marginal likelihood." Submitted.
1 2 3 4 5 | library(HMMmlselect)
# Example 1: use robust BIC to determine the order of HMM
obs = HMMsim ( n = 200 )$obs
resultsBIC = RobustBIC ( y = obs )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.