Package: revdbayes 1.5.5

Paul J. Northrop

revdbayes: Ratio-of-Uniforms Sampling for Bayesian Extreme Value Analysis

Provides functions for the Bayesian analysis of extreme value models. The 'rust' package <https://cran.r-project.org/package=rust> is used to simulate a random sample from the required posterior distribution. The functionality of 'revdbayes' is similar to the 'evdbayes' package <https://cran.r-project.org/package=evdbayes>, which uses Markov Chain Monte Carlo ('MCMC') methods for posterior simulation. In addition, there are functions for making inferences about the extremal index, using the models for threshold inter-exceedance times of Suveges and Davison (2010) <doi:10.1214/09-AOAS292> and Holesovsky and Fusek (2020) <doi:10.1007/s10687-020-00374-3>. Also provided are d,p,q,r functions for the Generalised Extreme Value ('GEV') and Generalised Pareto ('GP') distributions that deal appropriately with cases where the shape parameter is very close to zero.

Authors:Paul J. Northrop [aut, cre, cph], Scott D. Grimshaw [ctb]

revdbayes_1.5.5.tar.gz
revdbayes_1.5.5.tar.gz(r-4.5-noble)revdbayes_1.5.5.tar.gz(r-4.4-noble)
revdbayes_1.5.5.tgz(r-4.4-emscripten)revdbayes_1.5.5.tgz(r-4.3-emscripten)
revdbayes.pdf |revdbayes.html
revdbayes/json (API)
NEWS

# Install 'revdbayes' in R:
install.packages('revdbayes', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/paulnorthrop/revdbayes/issues

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3
Datasets:
  • gom - Storm peak significant wave heights from the Gulf of Mexico
  • newlyn - Newlyn sea surges
  • oxford - Annual Maximum Temperatures at Oxford
  • portpirie - Annual Maximum Sea Levels at Port Pirie, South Australia
  • rainfall - Daily Aggregate Rainfall
  • venice - Largest Sea Levels in Venice

5.81 score 4 packages 58 scripts 1.6k downloads 39 exports 51 dependencies

Last updated 3 months agofrom:2d5b1dfd72. Checks:OK: 2. Indexed: no.

TargetResultDate
Doc / VignettesOKNov 01 2024
R-4.5-linux-x86_64OKNov 01 2024

Exports:binpostcreate_prior_xptrdgaps_postdgevdgpgev_betagev_flatgev_flatflatgev_loglognormgev_mdigev_normgev_probgev_quantgp_betagp_flatgp_flatflatgp_jeffreysgp_lrsgp_mdigp_normgp_pwmgrimshaw_gp_mlekgaps_postpgevpgppp_checkqgevqgpquantile_to_gevrDirrgevrgprpostrpost_rcpprprior_probrprior_quantset_bin_priorset_priorwbinpost

Dependencies:abindbackportsbayesplotchandwichcheckmateclicolorspacedistributionaldplyrexdexfansifarvergenericsggplot2ggridgesgluegtableisobandlabelinglatticelifecyclemagrittrMASSMatrixmatrixStatsmgcvmunsellnlmenumDerivpillarpkgconfigplyrposteriorR6RColorBrewerRcppRcppArmadilloRcppRollreshape2rlangrustscalesstringistringrtensorAtibbletidyselectutf8vctrsviridisLitewithr

Faster simulation using revdbayes

Rendered fromrevdbayes-b-using-rcpp-vignette.Rmdusingknitr::rmarkdownon Nov 01 2024.

Last update: 2023-12-02
Started: 2019-03-08

Inference for the extremal index using threshold interexceedance times

Rendered fromrevdbayes-d-kgaps-vignette.Rmdusingknitr::rmarkdownon Nov 01 2024.

Last update: 2023-12-02
Started: 2019-03-08

Introducing revdbayes: Ratio-of-Uniforms Sampling for Bayesian Extreme Value Analysis

Rendered fromrevdbayes-a-vignette.Rmdusingknitr::rmarkdownon Nov 01 2024.

Last update: 2023-12-02
Started: 2019-03-08

Posterior Predictive Extreme Value Inference using the revdbayes Package

Rendered fromrevdbayes-c-predictive-vignette.Rmdusingknitr::rmarkdownon Nov 01 2024.

Last update: 2023-12-02
Started: 2019-03-08

Readme and manuals

Help Manual

Help pageTopics
revdbayes: Ratio-of-Uniforms Sampling for Bayesian Extreme Value Analysisrevdbayes-package revdbayes
Random sampling from a binomial posterior distributionbinpost
Create an external pointer to a C++ priorcreate_prior_xptr
Random sampling from D-gaps posterior distributiondgaps_post
The Generalised Extreme Value Distributiondgev gev pgev qgev rgev
Beta-type prior for GEV shape parameter xigev_beta
Flat prior for GEV parameters (mu, log sigma, xi)gev_flat
Flat prior for GEV parameters (mu, sigma, xi)gev_flatflat
Trivariate normal prior for GEV parameters (log mu, log sigma, xi)gev_loglognorm
Maximal data information (MDI) prior for GEV parameters (mu, sigma, xi)gev_mdi
Trivariate normal prior for GEV parameters (mu, log sigma, xi)gev_norm
Informative GEV prior on a probability scalegev_prob
Informative GEV prior on a quantile scalegev_quant
Storm peak significant wave heights from the Gulf of Mexicogom
The Generalised Pareto Distributiondgp gp pgp qgp rgp
Beta-type prior for GP shape parameter xigp_beta
Flat prior for GP parameters (log sigma, xi)gp_flat
Flat prior for GP parameters (sigma, xi)gp_flatflat
Jeffreys prior for GP parameters (sigma, xi)gp_jeffreys
Linear Combinations of Ratios of Spacings estimation of generalised Pareto parametersgp_lrs
Maximal data information (MDI) prior for GP parameters (sigma, xi)gp_mdi
Bivariate normal prior for GP parameters (log sigma, xi)gp_norm
Probability-weighted moments estimation of generalised Pareto parametersgp_pwm
Maximum likelihood estimation of generalised Pareto parametersgrimshaw_gp_mle
Random sampling from K-gaps posterior distributionkgaps_post
Newlyn sea surgesnewlyn
Annual Maximum Temperatures at Oxfordoxford
Plot diagnostics for an evpost objectplot.evpost
Plot diagnostics for an evpred objectplot.evpred
Annual Maximum Sea Levels at Port Pirie, South Australiaportpirie
Posterior predictive checks for an evpost objectpp_check pp_check.evpost
Predictive inference for the largest value observed in N years.predict.evpost
Print method for objects of class "evpost"print.evpost
Print method for objects of class "summary.evpost"print.summary.evpost
Converts quantiles to GEV parametersquantile_to_gev
Daily Aggregate Rainfallrainfall
Simulation from a Dirichlet distributionrDir
Random sampling from extreme value posterior distributionsrpost
Random sampling from extreme value posterior distributionsrpost_rcpp
Prior simulation of GEV parameters - prior on probability scalerprior_prob
Prior simulation of GEV parameters - prior on quantile scalerprior_quant
Construction of a prior distribution for a binomial probability pset_bin_prior
Construction of prior distributions for extreme value model parametersset_prior
Summarizing an evpost objectsummary.evpost
Largest Sea Levels in Venicevenice
Random sampling from a binomial posterior distribution, using weightswbinpost