Learn R Programming

mleur (version 1.0-6)

mctest: Monte-Carlo unit root test

Description

The Monte-Carlo unit root test using the exact MLE. This provides a check for the function mleur() as well as a more robust approach using bootstrap residuals.

Usage

mctest(y, type = c("p", "n"), NumRep = 1000, bootQ = FALSE)

Arguments

y
the time series to be tested
type
default "p" for pivotal statistic, otherwise the normalized statistic is used
NumRep
Number of iterations for Monte-Carlo
bootQ
if FALSE, use NID innovations, otherwise if TRUE a bootstrap sample of the residuals

Value

See Also

mleur

Examples

Run this code
mctest(DiffBA, NumRep=100, type="n")

Run the code above in your browser using DataLab