| weissData {hmm.discnp} | R Documentation |
Data from “An Introduction to Discrete-Valued Time Series”
Description
Data sets from the book “An Introduction to Discrete-Valued Time Series” by Christian H. Weiß.
Usage
data(Bovine)
data(Cryptosporidiosis)
data(Downloads)
data(EricssonB_Jul2)
data(FattyLiver)
data(FattyLiver2)
data(goldparticle380)
data(Hanta)
data(InfantEEGsleepstates)
data(IPs)
data(LegionnairesDisease)
data(OffshoreRigcountsAlaska)
data(PriceStability)
data(Strikes)
data(WoodPeweeSong)
Format
-
BovineA character vector of length 8419. -
CryptosporidiosisA numeric (integer) vector of length 365. -
DownloadsA numeric (integer) vector of length 267. -
EricssonB_Jul2A numeric (integer) vector of length 460. -
FattyLiver2A numeric (integer) vector of length 449. -
FattyLiverA numeric (integer) vector of length 928. -
goldparticle380A numeric (integer) vector of length 380. -
HantaA numeric (integer) vector of length 52. -
InfantEEGsleepstatesA character vector of length 107. -
IPsA numeric (integer) vector of length 241. -
LegionnairesDiseaseA numeric (integer) vector of length 365. -
OffshoreRigcountsAlaskaA numeric (integer) vector of length 417. -
PriceStabilityA numeric (integer) vector of length 152. -
StrikesA numeric (integer) vector of length 108. -
WoodPeweeSongA numeric (integer) vector of length 1327.
Details
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. Weiß. The package author is also pleased
to acknowledge the kind permission granted by Prof. Kurt
Brännäs (Professor Emeritus of Economics at
Umeå University) to include the Ericsson time series
data set (EricssonB_Jul2).
References
Christian H. Weiß (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)