Learn R Programming

MixtureInf (version 1.1)

earthquake: number of earthquakes

Description

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.

Usage

#Load this data set for subsequent analysis: data(earthquake)

Arguments

Format

This data frame contains one column: number: number of major earthquakes in a year.

References

Zucchini W, MacDonald IL (2009). Hidden Markov models for time series: an introduction using R. CRC Press.

Examples

Run this code
#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)

Run the code above in your browser using DataLab