UnitRoot

scalation.modeling.forecasting.UnitRoot
trait UnitRoot(val testName: String, val nobs: Int, val validTrends: VectorS, var lagsType: String, var lags: Int, var trend: String)

The UnitRoot trait provides a common framework for various unit root testers for Time Series Stationarity. This code is translated from the C++ code found in

Value parameters

lags

the number of lags to use

lagsType

default lags value long or short time-series

nobs

the number of observations (length of time-series)

testName

the name of test, e.g., KPSS

trend

type of trend to test for

validTrends

vector of test valid trends types, e.g., constant, linear trend

Attributes

See also

github.com/olmallet81/URT.

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def statistic(): Double

Compute test statistic.

Compute test statistic.

Attributes

Concrete methods

def getPval(): Double

Get test pvalue.

Get test pvalue.

Attributes

Get test valid trends.

Get test valid trends.

Attributes

def pvalue(stat: Double): Double

Compute test statistic p-value.

Compute test statistic p-value.

Attributes

def reset(lags_: Int, trend_: String): Unit

Reset the values for lags for trend.

Reset the values for lags for trend.

Value parameters

lags

the number of lags to use

trend

type of trend to test for

Attributes

protected def setLags(): Unit

Set number of lags, checking input validity. This method needs to know optim so it needs to be run after set_method ().

Set number of lags, checking input validity. This method needs to know optim so it needs to be run after set_method ().

Attributes

protected def setLagsType(): Unit

Set lags type long or short for PP and KPSS default lags value or ADF and DFGLS default maxlags value.

Set lags type long or short for PP and KPSS default lags value or ADF and DFGLS default maxlags value.

Attributes

protected def setTrend(): Unit

Set regression trend.

Set regression trend.

Attributes

def show(stat: Double): Unit

Output test results (can be overridden by derived classes).

Output test results (can be overridden by derived classes).

Attributes

Concrete fields

protected var coeff: HashMap[Double, CriticalValues]
protected var lags: Int
protected var lagsType: String
protected var newLags: Boolean
protected var newTrend: Boolean
protected val nobs: Int
protected var pval: Double
protected val testName: String
protected var trend: String
protected val validTrends: VectorS