corrvecchia_knownCovparms: Vecchia approximation with Euclidean and correlation-based...

Description Usage Arguments Value References Examples

View source: R/model.R

Description

The correlation-based Vecchia approximation is nothing but the Vecchia approximation with a correlation-based distance. It is equivalent to the Vecchia approximation with Euclidean distance for isotropic covariance function cases which are popular in application. If offers an automatic strategy even when Euclidean distance is not applicable (e.g. text data).

Usage

1
2
3
corrvecchia_knownCovparms(locs, m, ordering = "maxmin",
  coordinate = NULL, dist.ordering = "correlation",
  dist.conditioning = "correlation", covmodel, covparms = NULL)

Arguments

locs

A matrix with n rows and p columns. Each row of locs gives a point in [0, 1]^p

m

Number of nearby points to condition on (the size of conditioning sets)

ordering

"coord" or "maxmin." If ordering is "coord," then coordinate-based ordering method is used to order the locations. If ordering is "maxmin," then maxmin ordering method is used to order the locations.

coordinate

a numeric vector of coordinates

dist.ordering

"euclidean" or "correlation." If dist.ordering is "euclidean," then euclidean distance is used to order the locations. If dist.ordering is "correlation," then correlation based distance 1-rho is used to order the locations.

dist.conditioning

"euclidean" or "correlation." If dist.conditioning is "euclidean," then euclidean distance is used to construct conditioning sets. If dist.conditioning is "correlation," then correlation based distance 1-rho is used to construct conditioning sets.

covmodel

If covmodel is a function, then covmodel is a covariance function. If covmodel is a matrix, then covmodel is a covariance matrix. Please use covparms = c(1) if covmodel is a correlation matrix.

covparms

A numerical vector with covariance parameters. It must be compatible with the argument covmodel. At NULL by default

Value

An object that specifies the Vecchia approximation for later use in likelihood evaluation or prediction. We are doing research on this.

References

Katzfuss, Matthias, and Joseph Guinness. "A general framework for Vecchia approximations of Gaussian processes." arXiv preprint arXiv:1708.06302 (2017).

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
n    <- 15^2
m    <- 10
locs <- matrix(runif(n * 2, 0, 1), n, 2)

covparms   <- c(1, 0.1, 10)
sigma      <- cov_expo_aniso(locs = locs, covparms = covparms)

out.euclidean <- corrvecchia_knownCovparms(locs = locs, m = m, ordering = "maxmin", coordinate = NULL, dist.ordering = "euclidean", dist.conditioning = "euclidean", covmodel = cov_expo_aniso, covparms = covparms)
out.correlation <- corrvecchia_knownCovparms(locs = locs, m = m, ordering = "maxmin", coordinate = NULL, dist.ordering = "correlation", dist.conditioning = "correlation", covmodel = cov_expo_aniso, covparms = covparms)

out.euclidean$ord
out.correlation$ord

myeongjong/GPsim documentation built on Dec. 11, 2019, 12:37 p.m.