For detailed information about each of these data sets, see the book cited in the References .
Note that the data sets Cryptosporidiosis
and LegionnairesDisease are actually called
Cryptosporidiosis_02-08 and LegionnairesDisease_02-08 in the given reference. The
suffixes were removed since the minus sign causes problems in a variable name in R.
Source
These data sets were kindly provided by Prof. Christian H. . The package author is also pleased to acknowledge the kind permission granted by Prof. Kurt (Professor Emeritus of Economics at University) to include the Ericsson time series data set (EricssonB_Jul2).
References
Christian H. (2018). An Introduction to Discrete-Valued Time Series. Chichester: John Wiley & Sons.
Examples
## Not run:fit1 <- hmm(WoodPeweeSong,K=2,verbose=TRUE)# EM converges in 6 steps --- suspicious.set.seed(321)fit2 <- hmm(WoodPeweeSong,K=2,verbose=TRUE,rand.start=list(tpm=TRUE,Rho=TRUE))# 52 steps --- note the huge difference between fit1$log.like and fit2$log.like!set.seed(321)fit3 <- hmm(WoodPeweeSong,K=2,verbose=TRUE,method="bf", rand.start=list(tpm=TRUE,Rho=TRUE))# log likelihood essentially the same as for fit2## End(Not run)