teleCor: Pointwise correlations for an exploratory teleconnection...

Description Usage Arguments Value Examples

View source: R/teleCor.R

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

1
2
3
4
5
6
7
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

1
2
3
data("coprecip")

cors = teleCor(coprecip)

telefit documentation built on Feb. 4, 2020, 9:08 a.m.

Related to teleCor in telefit...