Learn R Programming

GpGp

GpGp is an R package for fast approximate Gaussian process computation. The package includes implementations of the Vecchia's (1988) original approximation, as well as several updates to it, including the reordered and grouped versions of the approximation outlined in Guinness (2018).

Installing

The package can be installed from CRAN with the usual R command

install.packages("GpGp")

or directly from Github for the latest version

devtools::install_github("joeguinness/GpGp")

Basic Use

The main function for fitting models is called 'fit_model', and the main function for doing predictions is called 'predictions'.

See this youtube video for a tutorial: https://www.youtube.com/watch?v=phyB4n0CDWg&t=4s

Copy Link

Version

Install

install.packages('GpGp')

Monthly Downloads

482

Version

0.5.1

License

MIT + file LICENSE

Maintainer

Joseph Guinness

Last Published

October 16th, 2024

Functions in GpGp (0.5.1)

find_ordered_nn

Find ordered nearest neighbors.
find_ordered_nn_brute

Naive brute force nearest neighbor finder
fast_Gp_sim_Linv

Approximate GP simulation with specified Linverse
matern_anisotropic2D

Geometrically anisotropic Matern covariance function (two dimensions)
fast_Gp_sim

Approximate GP simulation
matern45_scaledim

Matern covariance function, smoothess = 3.5, different range parameter for each dimension
matern45_isotropic

Isotropic Matern covariance function, smoothness = 4.5
get_start_parms

get default starting values of covariance parameters
group_obs

Automatic grouping (partitioning) of locations
matern35_scaledim

Matern covariance function, smoothess = 3.5, different range parameter for each dimension
matern25_isotropic

Isotropic Matern covariance function, smoothness = 2.5
matern15_scaledim

Matern covariance function, smoothess = 1.5, different range parameter for each dimension
matern_spacetime

Spatial-Temporal Matern covariance function
matern_anisotropic3D

Geometrically anisotropic Matern covariance function (three dimensions)
matern_categorical

Isotropic Matern covariance function with random effects for categories
matern_spacetime_categorical

Space-Time Matern covariance function with random effects for categories
get_penalty

get penalty function
matern15_isotropic

Isotropic Matern covariance function, smoothness = 1.5
get_linkfun

get link function, whether locations are lonlat and space time
matern_anisotropic3D_alt

Geometrically anisotropic Matern covariance function (three dimensions, alternate parameterization)
jason3

Windspeed measurements from Jason-3 Satellite
matern25_scaledim

Matern covariance function, smoothess = 2.5, different range parameter for each dimension
matern_scaledim

Matern covariance function, different range parameter for each dimension
matern35_isotropic

Isotropic Matern covariance function, smoothness = 3.5
order_dist_to_point

Distance to specified point ordering
matern_nonstat_var

Isotropic Matern covariance function, nonstationary variances
order_middleout

Middle-out ordering
vecchia_meanzero_loglik

Vecchia's approximation to the Gaussian loglikelihood, zero mean
pen_hi

penalize large values of parameter: penalty, 1st deriative, 2nd derivative
vecchia_profbeta_loglik

Vecchia's approximation to the Gaussian loglikelihood, with profiled regression coefficients.
matern_spheretime_warp

Deformed Matern covariance function on sphere
matern_isotropic

Isotropic Matern covariance function
order_coordinate

Sorted coordinate ordering
matern_sphere_warp

Deformed Matern covariance function on sphere
predictions

Compute Gaussian process predictions using Vecchia's approximations
matern_spheretime

Matern covariance function on sphere x time
sph_grad_xyz

compute gradient of spherical harmonics functions
vecchia_grouped_meanzero_loglik

Grouped Vecchia approximation to the Gaussian loglikelihood, zero mean
vecchia_Linv

Entries of inverse Cholesky approximation
order_maxmin

Maximum minimum distance ordering
test_likelihood_object

test likelihood object for NA or Inf values
summary.GpGp_fit

Print summary of GpGp fit
vecchia_profbeta_loglik_grad_info

Vecchia's loglikelihood, gradient, and Fisher information
fit_model

Estimate mean and covariance parameters
matern_sphere

Isotropic Matern covariance function on sphere
fisher_scoring

Fisher scoring algorithm
pen_lo

penalize small values of parameter: penalty, 1st deriative, 2nd derivative
exponential_spacetime

Spatial-Temporal exponential covariance function
matern_spacetime_categorical_local

Space-Time Matern covariance function with local random effects for categories
pen_loglo

penalize small values of log parameter: penalty, 1st deriative, 2nd derivative
vecchia_grouped_profbeta_loglik

Grouped Vecchia approximation, profiled regression coefficients
vecchia_grouped_profbeta_loglik_grad_info

Grouped Vecchia loglikelihood, gradient, Fisher information
argo2016

Ocean temperatures from Argo profiling floats
L_t_mult

Multiply transpose of approximate Cholesky by a vector
Linv_t_mult

Multiply transpose of approximate inverse Cholesky by a vector
Linv_mult

Multiply approximate inverse Cholesky by a vector
exponential_anisotropic2D

Geometrically anisotropic exponential covariance function (two dimensions)
exponential_nonstat_var

Isotropic exponential covariance function, nonstationary variances
expit

expit function and integral of expit function
exponential_isotropic

Isotropic exponential covariance function
cond_sim

Conditional Simulation using Vecchia's approximation
exponential_anisotropic3D

Geometrically anisotropic exponential covariance function (three dimensions)
exponential_anisotropic3D_alt

Geometrically anisotropic exponential covariance function (three dimensions, alternate parameterization)
exponential_sphere_warp

Deformed exponential covariance function on sphere
exponential_sphere

Isotropic exponential covariance function on sphere
condition_number

compute condition number of matrix
exponential_scaledim

Exponential covariance function, different range parameter for each dimension
exponential_spheretime

Exponential covariance function on sphere x time
L_mult

Multiply approximate Cholesky by a vector
GpGp

GpGp: Fast Gaussian Process Computing.
exponential_spheretime_warp

Deformed exponential covariance function on sphere