teleCor {telefit} | R Documentation |
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 |
Z |
[nz x nt] a matrix composed of |
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
data("coprecip")
cors = teleCor(coprecip)