Description Usage Format References Examples
This data set contains the number of major earthquakes (magnitude 7 or greater) in the world from 1900 to 2006. The data are available in Table 1.1 of Zucchini & MacDonald (2009). Zucchini & MacDonald (2009) suggested using a Poisson mixture model to fit the data. The data frame has 107 rows and 1 column.
1 2 | #Load this data set for subsequent analysis:
data(earthquake)
|
This data frame contains one column:
number: number of major earthquakes in a year.
Zucchini W, MacDonald IL (2009). Hidden Markov models for time series: an introduction using R. CRC Press.
1 2 3 4 5 | #fit a finite Poisson mixture model of order 2 to this data set,
#plot the histogram of the observations and the fitted probability mass function.
data(earthquake)
out <- pmle.pois(earthquake,2,1)
plotmix.pois(earthquake,out)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.