powered by
LagEstimator
A LagEstimator object can be created from numeric, a ts, or a zoo object. Also a LagOperator and a Weight object can be used to create different types of estimators.
numeric
ts
zoo
LagOperator
Weight
lagEstimator( Y, frequencies = 2 * pi/length(Y) * 0:(length(Y) - 1), levels.1 = 0.5, levels.2 = levels.1, weight = lagKernelWeight(K = length(Y), bw = 100), type = c("clippedCov") )
Returns an instance of LagEstimator.
a time series (numeric, ts, or zoo object) or a LagOperator from which to determine the LagEstimator
A vector containing (Fourier-)frequencies at which to determine the smoothed periodogram.
the first vector of levels for which to compute the LagEstimator
the second vector of levels for which to compute the LagEstimator
Object of type Weight to be used for smoothing.
if Y is a time series, this indicates which LagOperator will be used
Y
Y <- rnorm(100) levels.1 <- c(0.1,0.5,0.9) weight <- lagKernelWeight(W = WParzen, bw = 10, K = length(Y)) lagOp <- clippedCov(Y,levels.1 = levels.1) lagEst <- lagEstimator(lagOp, weight = weight)
Run the code above in your browser using DataLab