Learn R Programming

Spatial Interpolation for data comprising hard and soft-interval forms

The Bayesian Maximum Entropy (BME) framework provides a flexible and principled approach to space-time data analysis by combining Bayesian inference with the maximum entropy principle. It supports optimal estimation using both precise (hard) and uncertain (soft) data, such as intervals or probability distributions—making it ideal for complex, real-world datasets. The BMEmapping R package implements core BME methods for spatial interpolation, enabling the integration of heterogeneous data, variogram-based modeling, and uncertainty quantification.

Installation

You can install the development version of BMEmapping from GitHub with:

# install.packages("devtools")
devtools::install_github("KinsprideDuah/BMEmapping")

Functions

bme_map - creates a BMEmapping object that contains all the data information necessary for BME interpolation.

prob_zk - computes and optionally plots the posterior density estimate at a single unobserved location.

bme_predict - predicts the posterior mean or mode and the associated variance at an unobserved location.

bme_cv - performs a cross-validation on the hard data to assess model performance.

Getting help

If you encounter a clear bug, please file an issue with a minimal reproducible example on GitHub.

Author

Kinspride Duah

License

MIT + file LICENSE

Copy Link

Version

Install

install.packages('BMEmapping')

Monthly Downloads

145

Version

1.2.2

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Kinspride Duah

Last Published

August 19th, 2025

Functions in BMEmapping (1.2.2)

plot.BMEmapping

Plot Method for BMEmapping Objects (ggplot2)
summary.BMEmapping

Summary Method for BME Cross-Validation Results
prob_zk

Posterior Density Estimation at a Single Location
bme_cv

Leave-one-out cross validation (LOOCV) at hard data locations.
bme_predict

Bayesian Maximum Entropy (BME) Spatial Interpolation
bme_map

Create BMEmapping object
utahsnowload

A detrended reliability-targeted design ground snow loads in Utah
casnowload

California Snow Load Data
extended_range

Computes an extended numeric range that includes all elements from three numeric vectors: x, y, z. The range is extended by 10\ range on both sides