ur_test: Perform unit root tests

Description Usage Arguments Value Author(s)

Description

This function uses the package 'urca' to perform unit root tests on a pre-defined time series. Unlike urca functions, it returns a meaningful table summarizing the results.

Usage

1
ur_test(..., mode = "ADF", level = "5pct")

Arguments

...

Arguments passed on to urca functions

mode

A character. The type of the test. Set it to 'ADF' for Augmented Dickey-Fuller, 'KPSS' for KPSS or 'PP' for Phillips-Perron.

level

A character. The confidence level. Can be either '1pct' (not for KPSS), '2.5pct', '5pct' or '10pct'

Value

A list object. The first element is a data.frame with the test statistics, the critical values and the test results. The second, the model residuals.

Author(s)

Talitha Speranza talitha.speranza@fgv.br


BETS documentation built on May 1, 2019, 7:48 p.m.