Package: BayesNSGP 0.2.0

BayesNSGP: Bayesian Analysis of Non-Stationary Gaussian Process Models

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.

Authors:Daniel Turek [aut, cre], Mark Risser [aut]

BayesNSGP_0.2.0.tar.gz
BayesNSGP_0.2.0.zip(r-4.7)BayesNSGP_0.2.0.zip(r-4.6)BayesNSGP_0.2.0.zip(r-4.5)
BayesNSGP_0.2.0.tgz(r-4.6-any)BayesNSGP_0.2.0.tgz(r-4.5-any)
BayesNSGP_0.2.0.tar.gz(r-4.7-any)BayesNSGP_0.2.0.tar.gz(r-4.6-any)
BayesNSGP_0.2.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
BayesNSGP/json (API)

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

On CRAN:

Conda:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

1.86 score 2 stars 36 scripts 233 downloads 37 exports 43 dependencies

Last updated from:25753e5c2e. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK173
source / vignettesOK186
linux-release-x86_64OK172
macos-release-arm64OK149
macos-oldrel-arm64OK129
windows-develOK146
windows-releaseOK120
windows-oldrelOK125
wasm-releaseOK121

Exports:calcQFcalculateAD_nscalculateU_nsconditionLatentObscrossCy_smCy_smdetermineNeighborsdmnorm_gp2Scaledmnorm_nngpdmnorm_sgvinverseEigenmatern_corrnimble_sparse_cholnimble_sparse_choleskynimble_sparse_crossprodnimble_sparse_solvenimble_sparse_solveMatnimble_sparse_tcrossprodnsCorrnsCrosscorrnsCrossdistnsCrossdist3dnsDistnsDist3dnsgpModelnsgpPredictorderCoordinatesMMDR_sparse_cholR_sparse_choleskyR_sparse_crossprodR_sparse_solveR_sparse_solveMatR_sparse_tcrossprodrmnorm_gp2Scalermnorm_nngprmnorm_sgvsgvSetup

Dependencies:clicodacpp11DBIdplyrfarverFNNgenericsggplot2gluegtableigraphisobandlabelinglatticelifecyclelpSolvemagrittrMatrixminqamitoolsnimblenumDerivpillarpkgconfigpracmaproxyR6RColorBrewerRcppRcppArmadillorlangS7scalesStatMatchsurveysurvivaltibbletidyselectutf8vctrsviridisLitewithr

Readme and manuals

Help Manual

Help pageTopics
Calculate the Gaussian quadratic form for the NNGP approximationcalcQF
Calculate A and D matrices for the NNGP approximationcalculateAD_ns
Calculate the (sparse) matrix UcalculateU_ns
Assign conditioning sets for the SGV approximationconditionLatentObs
Calculate sparse kernel, core kernel, and determine nonzero entriescrossCy_sm
Calculate sparse kernel, core kernel, and determine nonzero entriesCy_sm
Determine the k-nearest neighbors for each spatial coordinate.determineNeighbors
Function for the evaluating the Gaussian likelihood with gp2Scale sparse covariance.dmnorm_gp2Scale
Function for the evaluating the NNGP approximate density.dmnorm_nngp
Function for the evaluating the SGV approximate density.dmnorm_sgv
Calculate covariance elements based on eigendecomposition componentsinverseEigen
Calculate a stationary Matern correlation matrixmatern_corr
nimble_sparse_cholnimble_sparse_chol
nimble_sparse_cholnimble_sparse_cholesky
nimble_sparse_crossprodnimble_sparse_crossprod
nimble_sparse_solvenimble_sparse_solve
nimble_sparse_crossprodnimble_sparse_solveMat
nimble_sparse_tcrossprodnimble_sparse_tcrossprod
Calculate a nonstationary Matern correlation matrixnsCorr
Calculate a nonstationary Matern cross-correlation matrixnsCrosscorr
Calculate coordinate-specific cross-distance matricesnsCrossdist
Calculate coordinate-specific cross-distance matrices, only for nearest neighbors and store in an arraynsCrossdist3d
Calculate coordinate-specific distance matricesnsDist
Calculate coordinate-specific distance matrices, only for nearest neighbors and store in an arraynsDist3d
NIMBLE code for a generic nonstationary GP modelnsgpModel
Posterior prediction for the NSGPnsgpPredict
Order coordinates according to a maximum-minimum distance criterion.orderCoordinatesMMD
R_sparse_cholR_sparse_chol
R_sparse_cholR_sparse_cholesky
nimble_sparse_crossprodR_sparse_crossprod
nimble_sparse_solveR_sparse_solve
nimble_sparse_crossprodR_sparse_solveMat
nimble_sparse_tcrossprodR_sparse_tcrossprod
Function for the evaluating the SGV approximate density.rmnorm_gp2Scale
Function for the evaluating the NNGP approximate density.rmnorm_nngp
Function for the evaluating the SGV approximate density.rmnorm_sgv
One-time setup wrapper function for the SGV approximationsgvSetup