Learn R Programming

FCVAR (version 0.1.4)

FracDiff: Fast Fractional Differencing

Description

FracDiff is a fractional differencing procedure based on the fast fractional difference algorithm of Jensen & Nielsen (2014).

Usage

FracDiff(x, d)

Arguments

x

A matrix of variables to be included in the system.

d

The order of fractional differencing.

Value

A vector or matrix dx equal to \((1-L)^d x\) of the same dimensions as x.

References

Jensen, A. N. and M. <U+00D8>. Nielsen (2014). "A fast fractional difference algorithm," Journal of Time Series Analysis 35, 428-436.

See Also

FCVARoptions to set default estimation options. FCVARestn calls GetParams, which calls TransformData to estimate the FCVAR model. TransformData in turn calls FracDiff and Lbk to perform the transformation.

Other FCVAR auxiliary functions: FCVARforecast(), FCVARlikeGrid(), FCVARsimBS(), FCVARsim(), plot.FCVAR_grid()

Examples

Run this code
# NOT RUN {
set.seed(42)
WN <- matrix(stats::rnorm(200), nrow = 100, ncol = 2)
# }
# NOT RUN {
MVWNtest_stats <- MVWNtest(x = WN, maxlag = 10, printResults = 1)
# }
# NOT RUN {
x <- FracDiff(x = WN, d = - 0.5)
# }
# NOT RUN {
MVWNtest_stats <- MVWNtest(x = x, maxlag = 10, printResults = 1)
# }
# NOT RUN {
WN_x_d <- FracDiff(x, d = 0.5)
# }
# NOT RUN {
MVWNtest_stats <- MVWNtest(x = WN_x_d, maxlag = 10, printResults = 1)
# }

Run the code above in your browser using DataLab