BETS.ur_test: Perform unit root tests

Description Usage Arguments Value Author(s)

View source: R/BETS.ur_test.R

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
BETS.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


pedrocostaferreira/BETS documentation built on June 1, 2020, 7:53 a.m.