# preparing the catalog
iran.cat <- catalog(iran.quakes, time.begin="1973/01/01",
study.start="1996/01/01", study.end="2016/01/01",
lat.range=c(25, 42), long.range=c(42, 63), mag.threshold=4.5)
print(iran.cat)
## Not run:
# plot(iran.cat)## End(Not run)
# initial parameters values
param01 <- c(0.46, 0.23, 0.022, 2.8, 1.12, 0.012, 2.4, 0.35)
# fitting the model and estimating the rates
## Not run:
# iran.fit <- etas(iran.cat, param0=param01, no.itr=5)
# rates(iran.fit, dimyx=c(200, 250))
# iran.rates <- rates(iran.fit, dimyx=c(200, 250), plot.it=FALSE)
# summary(iran.rates$background)## End(Not run)
Run the code above in your browser using DataLab