Learn R Programming

ETAS (version 0.7.2)

etas.object: Class of Fitted ETAS Models

Description

A class etas to represent a fitted ETAS model. The output of etas.

Arguments

Author

Abdollah Jalilian jalilian@razi.ac.ir

Details

An object of class etas represents an ETAS model that has been fitted to a spatio-temporal point pattern (catalog) of earthquakes. It is the output of the model fitter, etas.

The class etas has methods for the following standard generic functions:

genericmethoddescription
printprint.etasprint details

See Also

etas,

Examples

Run this code
  # fitting the ETAS model to an Iranian catalog

  data(iran.quakes)
  summary(iran.quakes)

    # fitting the ETAS model to an Iranian catalog
  # preparing the catalog
  iran.cat <- catalog(iran.quakes, time.begin="1973/01/01",
     study.start="1986/01/01", study.end="2016/01/01",
     lat.range=c(26, 40), long.range=c(44, 63), mag.threshold=5)
  print(iran.cat)
  if (FALSE) {
  plot(iran.cat)}

  # setting initial parameter values
  param0 <- c(0.46, 0.23, 0.022, 2.8, 1.12, 0.012, 2.4, 0.35)

  # fitting the model
  if (FALSE) {
  iran.fit <- etas(iran.cat, param0=param0)}

Run the code above in your browser using DataLab