RobustBIC: RobustBIC

Description Usage Arguments Details Value References Examples

View source: R/HMMorderselectionfacility.R

Description

This function estimates the number of states of the given HMM data using robust BIC criteria.

Usage

1
RobustBIC(y, optionalbic = list())

Arguments

y

The observed data.

optionalbic

Optional variables as a list. Possible options include:

Details

See Manual.pdf in "inst/extdata" folder.

Value

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.

References

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.

Examples

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 )

HMMmlselect documentation built on May 3, 2020, 9:05 a.m.