stempsv: Compute the Empirical Spatio-Temporal Semivariogram

Description Usage Arguments Value

View source: R/stempsv.R

Description

Compute the Empirical Spatio-Temporal Semivariogram

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
stempsv(
  response,
  xcoord,
  ycoord = NULL,
  tcoord,
  h_options = NULL,
  h_response = NULL,
  h_s_large = NULL,
  h_t_large = NULL,
  stempsv_options = NULL
)

Arguments

response

A vector of response variables (not required if h_response is provided).

xcoord

A vector of x-coordinates (not required if h_s_large is provided).

ycoord

A vector of y-coordinates (not required if h_s_large is provided).

tcoord

A vector of t-coordinates (not required if h_t_large is provided).

h_options

A list containing options to compute distances if response, xcoord, ycoord, and tcoord are provided. Named arguments are

h_t_distmetric

The temporal distance matrix (defaults to "euclidean").

.

h_s_distmetric

The spatial distance matrix (defaults to "euclidean").

h_response

A distance matrix of paired differences of the response variable.

h_s_large

A distance matrix of paired differences of the spatial locations.

h_t_large

A distance matrix of paired differences of the temporal locations.

stempsv_options

A list containing additional options. Named arguments are

n_s_lag

The number of spatial distance classes (defaults to 16).

n_t_lag

The number of temporal distance classes (defaults to 16).

h_s_max

The maximum spatial distance. Deafaults to half the maximum distance in the spatial domain.

h_t_max

The maximum temporal distance. Deafaults to half the maximum distance in the temporal domain.

Value

A data frame whose columns are

gammahat

The estimated empirical semivariogram value for for the spatio-temporal distance class.

n

The number of pairs for the spatio-temporal distance class

h_s_avg

The average spatial distance in the spatio-temporal distance class.

h_t_avg

The average temporal distance in the spatio-temporal distance class.


michaeldumelle/DumelleEtAl2021STLMM documentation built on Dec. 21, 2021, 5:56 p.m.