selectGrid function

Selects a grid of indices.

Selects a grid of indices.

Returns a regular grid of indices in which to evaluate the stable tail dependence function.

selectGrid(cst, d, nonzero = 2, locations = NULL, maxDistance = 10^6)

Arguments

  • cst: A vector containing the values used to construct the grid. Must contain 0.
  • d: An integer, representing the dimension.
  • nonzero: An vector containing integers between 22 and dd, representing the number of non-zero elements in every row of the grid. Defaults to 22.
  • locations: A d x 22 matrix containing the Cartesian coordinates of dd points in the plane. Used for the Brown-Resnick process only. If not NULL, then cst must be c(0,1) and nonzero must be 2.
  • maxDistance: If locations is not NULL, pairs of locations with distance not larger than maxDistance will be selected.

Returns

A matrix with q rows and d columns, where every row represents a vector in which we will evaluate the stable tail dependence function (for the weighted least squares estimator) or where every row indicates which pairs of variables to use (for the M-estimator)

Examples

selectGrid(cst = c(0,0.5,1), d = 3, nonzero = c(2,3)) locations <- cbind(rep(1:3, each = 3), rep(1:3,3)) selectGrid(c(0,1), d = 9, locations = locations, maxDistance = 1.5)
  • Maintainer: Anna Kiriliouk
  • License: GPL-3
  • Last published: 2021-06-03

Useful links