U2Z {geoCount}R Documentation

Convert Distance Matrix to Correlation Matrix

Description

This function converts the distance matrix to correlation matrix.

Usage

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 ljing918@gmail.com

See Also

loc2U, rhoPowerExp, rhoMatern.

Examples

## 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)

[Package geoCount version 1.150120 Index]