ELW2S: Two-Step Exact local Whittle estimator of fractional...

Description Usage Arguments Author(s) References Examples

View source: R/ELW_est.R

Description

ELW2S implements the two-step ELW estimator of Shimotsu (2010) that is consistent and asymptotically normal in the range from -1/2 to 2.

Usage

1
ELW2S(data, m, trend_order = 0, taper = c("Velasco", "HC"))

Arguments

data

data vector of length T.

m

bandwith parameter specifying the number of Fourier frequencies. used for the estimation usually floor(1+T^delta), where 0<delta<1.

trend_order

specifies the form of detrending: 0 for a constant, only, 1 for a linear trend, and so on.

taper

string from c("Velasco","HC") specifying the tapered form of the local Whittle estimator used in the first step.

Author(s)

Christian Leschinski

References

Shimotsu, K. (2010): Exact Local Whittle Estimation Of Fractional Integration with Unknown Mean and Time Trend. Econometric Theory, Vol. 26, pp. 501 - 540.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
library(fracdiff)
T<-1000
d<-0.8
trend<-(1:T)/T
series<-cumsum(fracdiff.sim(T,d=(d-1))$series)
ts.plot(series)
ELW2S(series, m=floor(1+T^0.7), trend_order=0)$d
series2<-series+2*trend
ELW2S(series2, m=floor(1+T^0.7), trend_order=1)$d
series3<-series+2*trend+2*trend^2
ELW2S(series3, m=floor(1+T^0.7), trend_order=2)$d

Example output

[1] 0.7922334
[1] 0.7894175
[1] 0.7892489

LongMemoryTS documentation built on May 2, 2019, 5:58 a.m.