Modeling Earthquake Data Using 'ETAS' Model

Fits the space-time Epidemic Type Aftershock Sequence ('ETAS') model to earthquake catalogs using a stochastic 'declustering' approach. The 'ETAS' model is a 'spatio-temporal' marked point process model and a special case of the 'Hawkes' process. The package is based on a Fortran program by 'Jiancang Zhuang' (available at <>), which is modified and translated into C++ and C such that it can be called from R. Parallel computing with 'OpenMP' is possible on supported platforms.

CRAN_Status_Badge CRAN_Download_Count Build Status

This repository contains a copy of the R package 'ETAS'.

The Epidemic Type Aftershock Sequence (ETAS) model is a spatio-temporal marked point process model. The 'ETAS' package fits the ETAS model to an earthquake catalog.


To install the package, run the following in R:


If 'devtools' is not installed, you should first run:


Alternatively, the package can be installed by


If 'githubinstall' is not installed, first run:


Parallel computing

As of version 0.3, a new C++ code is implemented using the Rcpp package which allows multi-thread parallel computing on multi-core processors with OpenMP and suported platforms. The argument nthreads in etas function determines the number of threads to be used in the parallel region of the code. The detectCores function in parallel package can be consulted to find out the overall number of available threads on a given machine:


Parallel computing (nthreads > 1) reduces the computation time for large earthquake catalogs. However, resource usage and limitations should be considered when setting nthreads.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


0.4.6 by Abdollah Jalilian, 24 days ago

Report a bug at

Browse source code at

Authors: Abdollah Jalilian [aut, cre] , Jiancang Zhuang [ctb]

Documentation:   PDF Manual  

GPL (>= 2) license

Imports lattice, goftest, spatstat, Rcpp, fields

Depends on stats, graphics, utils, maps

Linking to Rcpp

See at CRAN