Model-Averaged Renewal Process

To implement a model-averaging approach with different renewal models, with a primary focus on forecasting large earthquakes. Based on six renewal models (i.e., Poisson, Gamma, Log-Logistics, Weibull, Log-Normal and BPT), model-averaged point estimates are calculated using AIC weights. Additionally, both percentile and studentized bootstrapped model-averaged confidence intervals are constructed. In comparison, point and interval estimation from the individual or "best" model (determined via model selection) can be retrieved.


marp

R CMD check

marp fits six parametric renewal-process models and provides AIC-based model selection and model-averaged estimates. It also implements percentile and studentized bootstrap confidence intervals.

Overview of the marp workflow

Installation

Install the released version from CRAN:

install.packages("marp")

The development version is available from GitHub:

# install.packages("remotes")
remotes::install_github("kanji709/marp")

Basic workflow

library(marp)

set.seed(42)
dat <- rgamma(100, shape = 3, rate = 0.01)

# m controls repeated random-start optimizations for candidate models that
# use nlm(); t contains the times for log-hazard evaluation.
m <- 10
t <- seq(100, 200, by = 10)
y <- 304

# Model codes are 1 Poisson, 2 Gamma, 3 log-logistic, 4 Weibull,
# 5 log-normal, and 6 Brownian passage time (BPT).
fit <- marp(dat, t, m, y, which.model = 2)
fit
summary(fit)

The fitted object retains the original named list components for backward compatibility. For example, AIC weights and model-averaged estimates remain available through $:

fit$weights_AIC
fit$mu_aic
fit$pr_aic    # logit-transformed event probability at y
fit$haz_aic   # model-averaged log-hazards at t

Bootstrap confidence intervals use the original data and can be computationally expensive, especially when both B and BB are large. The standard S3 interface delegates to the existing bootstrap implementation:

## Not run:
# ci <- confint(fit, data = dat, B = 99, BB = 99, level = 0.95)
# ci

See vignette("marp-workflow") for a fuller workflow and interpretation of the returned quantities.

Reference manual

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

install.packages("marp")

0.1.1 by Veronica Tsou, 2 months ago


https://github.com/kanji709/marp


Report a bug at https://github.com/kanji709/marp/issues


Browse source code at https://github.com/cran/marp


Authors: Jie Kang [aut] , Chris Scott [aut] , Vanessa Huang [aut] , Veronica Tsou [aut, cre] , Albert Savary [ctb]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports stats, gtools, statmod, VGAM

Suggests knitr, rmarkdown, devtools, roxygen2, testthat


See at CRAN