# U2Z: Convert Distance Matrix to Correlation Matrix In geoCount: Analysis and Modeling for Geostatistical Count Data

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

loc2U, rhoPowerExp, rhoMatern.
 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)