U2Z: Convert Distance Matrix to Correlation Matrix

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/locUZ.R

Description

This function converts the distance matrix to correlation matrix.

Usage

1
U2Z(U, cov.par, rho.family = "rhoPowerExp")

Arguments

U

a n \times n matrix which indicates the distance between locations

cov.par

a vector of length 3 that indicates the value of (σ,φ,κ)

rho.family

take the value of "rhoPowerExp", "rhoMatern", or "rhoSph" which indicates the powered exponential, Matern, or Spherical correlation function is used

Details

When using the powered exponential correlation function, note that 0<κ<=2.

Value

A n \times n matrix with the element e_{ij} indicating the correlation between variables on the ith and jth locations.

Author(s)

Liang Jing [email protected]

See Also

loc2U, rhoPowerExp, rhoMatern.

Examples

1
2
3
4
5
6
## Not run: 
  loc <- locGrid(1, 2, 10, 5)
  U <- loc2U(loc)
  Z <- U2Z(U, cov.par=c(0.5, 0.1, 1))

## End(Not run)

geoCount documentation built on May 31, 2017, 3:49 a.m.

Related to U2Z in geoCount...