Learn R Programming

exPrior

Recent papers have made the case that statistics in subsurface hydrology is still falling short on available software tools (Rubin, 2018) and that Bayesian inference is the most relevant framework for subsurface statistics (Hesse, 2019). The exPrior package, providing tools for Bayesian inference, is therefore a timely addition to the R ecosystem of statistical tools.

The aim of this package is to provide practitioners of Bayesian statistics a tool to derive priors for Bayesian inference in subsurface hydrology. Priors summarize hydro-geological knowledge from studies at similar sites (Cucchi, 2019). The main features of the package are:

  • generate prior distributions based on external data only, therefore meeting the likelihood principle,
  • account for possible autocorrelation in these data,
  • account for available soft data, say, in the form of expert information on bounds and moments,
  • comes bundled with the largest open-source database on hydro-geological parameters, etc.

Installation

exPrior is not yet on CRAN. You can install the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("GeoStat-Bayesian/exPrior")

Example

Examples on how to use exPrior can be found in the vignettes in the /vignettes folder.

Documentation

A publication detailing the algorithm can be found at Cucchi (2019). A publication detailing the package and how to use it is in preparation.

Copy Link

Version

Install

install.packages('exPrior')

Monthly Downloads

10

Version

1.0.1

License

MIT + file LICENSE

Maintainer

Falk Hesse

Last Published

November 15th, 2019

Functions in exPrior (1.0.1)

plotExData

plot histogram of measurements
goodness_of_fit

tests goodness of fit to normal distribution
genExPrior

prior using from external data
smooth_pdf

Smooths a pdf
plotHyperDist

plot prior and posterior distribution of hyperparameters
plotExPrior

plot ex-situ prior
johnson_ln

log transform
johnson_su

hyperbolic arcsine transform
cap_prior

calculates the prior according to the Carsel and Parrish methodology
johnson_sb

log ratio transform
multiplot

multiplot function
KL_divergence

Kullback-Leibler divergence
df_porosity

566 porosity values
KS_distance

Kolmogorov-Smirnov distance
normalize_pdf

Normalize a pdf