teleCor: Pointwise correlations for an exploratory teleconnection analysis
Description
Computes empirical correlations between rows of Y and Z,
for use as exploratory analysis of teleconnection patterns between locations
indexed by coords.s and coords.r. Optionally, an stData
object containing Y and Z can be passed instead.
Usage
teleCor(
stData = NULL,
Y = stData$Y,
Z = stData$Z,
coords.s = stData$coords.s,
coords.r = stData$coords.r
)
Arguments
stData
stData object containing data to analyze
Y
[ny x nt] a matrix composed of \(ny\) row vectors, each of which
contains \(nt\) observations fom a different spatial location. Spatial
locations for Y are indexed by coords.s.
Z
[nz x nt] a matrix composed of \(nz\) row vectors each of which
contains \(nt\) observations from a different spatial location. Spatial
locations for Z are indexed by coords.r.
coords.s
coordinates of locations in Y
coords.r
coordinates of locations in Z
Value
list with a matrix 'cor' containing correlations. The columns index
remote coordinates, while the rows index the local coordinates. The
returned list also includes the coordinates.
Examples
Run this code# NOT RUN {
data("coprecip")
cors = teleCor(coprecip)
# }
Run the code above in your browser using DataLab