Learn R Programming

geoCount (version 1.150120)

U2Z: 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 $(\sigma,\phi,\kappa)$
rho.family
take the value of "rhoPowerExp", "rhoMatern", or "rhoSph" which indicates the powered exponential, Matern, or Spherical correlation function is used

Value

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

Details

When using the powered exponential correlation function, note that $0

See Also

loc2U, rhoPowerExp, rhoMatern.

Examples

Run this code
## 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)

Run the code above in your browser using DataLab