dftest: Dickey-Fuller test

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Computes the Dickey-Fuller test using the pivotal test statistic and returns critical points for tests at levels 0.1, 0.05, 0.01.

Usage

1
dftest(y)

Arguments

y

time series or vector

Details

The function ur.df() in the package ur.ca is used.

Value

The output is a list with components:

DFStat

value of Dickey-Fuller pivotal statistic

criticalValues

critical values corresponding to 1

Author(s)

A.I. McLeod and Hao Yu

See Also

ur.df, mleur

Examples

1
2

Example output

Loading required package: urca
Loading required package: stabledist
Loading required package: fGarch
Loading required package: timeDate
Loading required package: timeSeries
Loading required package: fBasics


Rmetrics Package fBasics
Analysing Markets and calculating Basic Statistics
Copyright (C) 2005-2014 Rmetrics Association Zurich
Educational Software for Financial Engineering and Computational Science
Rmetrics is free software and comes with ABSOLUTELY NO WARRANTY.
https://www.rmetrics.org --- Mail to: info@rmetrics.org
Loading required package: lattice
$tau
Dickey-Fuller 
    -3.284241 

$criticalValues
 1pct  5pct 10pct 
-3.46 -2.88 -2.57 

                             
test statistic     -0.2587052
1% critical point  -3.1605546
5% critical point  -2.5529005
10% critical point -2.2457370

mleur documentation built on May 1, 2019, 7:31 p.m.