Learn R Programming

quantspec (version 1.0-0)

getValues-QuantileSD: Get values from a quantile spectral density kernel

Description

If none of the optional parameters is specified then the values are returned for all Fourier frequencies in $[0,2\pi)$ (base given by slot N) and all levels available. The frequencies and levels can be freely specified. The returned array then has, at position (j,k1,k2,b), the value corresponding to the frequencies[j], levels.1[k1] and levels.2[k2] that are closest to the frequencies, levels.1 and levels.2 available in object; closest.pos is used to determine what closest to means. b==1 corresponds to the estimator, while b>1 corresponds to the estimator determiend from the b-1th boothstrap replicate.

Usage

## S3 method for class 'QuantileSD':
getValues(object, frequencies = 2 * pi * (0:(object@N -
  1))/object@N, levels.1 = getLevels(object, 1),
  levels.2 = getLevels(object, 2))

Arguments

object
QuantileSD of which to get the values
frequencies
a vector of frequencies for which to get the values
levels.1
the first vector of levels for which to get the values
levels.2
the second vector of levels for which to get the values

Value

  • Returns data from the array values that's a slot of object.

See Also

For examples on how to use this function go to QuantileSD.