stest {fDMA} | R Documentation |
Computes a Few Stationarity Tests.
Description
This is a wrapper for three functions from tseries
package. Augmented Dickey-Fuller (ADF, adf.test
), Phillips-Perron (PP, pp.test
) and Kwiatkowski-Phillips-Schmidt-Shin (KPSS, kpss.test
) tests for stationarity are performed.
Usage
stest(data)
Arguments
data |
|
Value
matrix
,
tests statistics and p-values are given by columns,
tests outcomes for different variables are ordered by rows
Examples
wti <- crudeoil[-1,1]
drivers <- (lag(crudeoil[,-1],k=1))[-1,]
ld.wti <- (diff(log(wti)))[-1,]
ld.drivers <- (diff(log(drivers)))[-1,]
x <- cbind(ld.wti,ld.drivers)
stest(x)
[Package fDMA version 2.2.7 Index]