BayesNSGP0.2.0 package

Bayesian Analysis of Non-Stationary Gaussian Process Models

calcQF

Calculate the Gaussian quadratic form for the NNGP approximation

calculateAD_ns

Calculate A and D matrices for the NNGP approximation

calculateU_ns

Calculate the (sparse) matrix U

conditionLatentObs

Assign conditioning sets for the SGV approximation

crossCy_sm

Calculate sparse kernel, core kernel, and determine nonzero entries

Cy_sm

Calculate sparse kernel, core kernel, and determine nonzero entries

determineNeighbors

Determine the k-nearest neighbors for each spatial coordinate.

dmnorm_gp2Scale

Function for the evaluating the Gaussian likelihood with gp2Scale spar...

dmnorm_nngp

Function for the evaluating the NNGP approximate density.

dmnorm_sgv

Function for the evaluating the SGV approximate density.

inverseEigen

Calculate covariance elements based on eigendecomposition components

matern_corr

Calculate a stationary Matern correlation matrix

nimble_sparse_chol

nimble_sparse_chol

nimble_sparse_cholesky

nimble_sparse_chol

nimble_sparse_crossprod

nimble_sparse_crossprod

nimble_sparse_solve

nimble_sparse_solve

nimble_sparse_solveMat

nimble_sparse_crossprod

nimble_sparse_tcrossprod

nimble_sparse_tcrossprod

nsCorr

Calculate a nonstationary Matern correlation matrix

nsCrosscorr

Calculate a nonstationary Matern cross-correlation matrix

nsCrossdist

Calculate coordinate-specific cross-distance matrices

nsCrossdist3d

Calculate coordinate-specific cross-distance matrices, only for neares...

nsDist

Calculate coordinate-specific distance matrices

nsDist3d

Calculate coordinate-specific distance matrices, only for nearest neig...

nsgpModel

NIMBLE code for a generic nonstationary GP model

nsgpPredict

Posterior prediction for the NSGP

orderCoordinatesMMD

Order coordinates according to a maximum-minimum distance criterion.

R_sparse_chol

R_sparse_chol

R_sparse_cholesky

R_sparse_chol

R_sparse_crossprod

nimble_sparse_crossprod

R_sparse_solve

nimble_sparse_solve

R_sparse_solveMat

nimble_sparse_crossprod

R_sparse_tcrossprod

nimble_sparse_tcrossprod

rmnorm_gp2Scale

Function for the evaluating the SGV approximate density.

rmnorm_nngp

Function for the evaluating the NNGP approximate density.

rmnorm_sgv

Function for the evaluating the SGV approximate density.

sgvSetup

One-time setup wrapper function for the SGV approximation

Enables off-the-shelf functionality for fully Bayesian, nonstationary Gaussian process modeling. The approach to nonstationary modeling involves a closed-form, convolution-based covariance function with spatially-varying parameters; these parameter processes can be specified either deterministically (using covariates or basis functions) or stochastically (using approximate Gaussian processes). Stationary Gaussian processes are a special case of our methodology, and we furthermore implement approximate Gaussian process inference to account for very large spatial data sets (Finley, et al (2017) <doi:10.48550/arXiv.1702.00434>). Bayesian inference is carried out using Markov chain Monte Carlo methods via the "nimble" package, and posterior prediction for the Gaussian process at unobserved locations is provided as a post-processing step.

  • Maintainer: Daniel Turek
  • License: GPL-3
  • Last published: 2025-12-11