Stationarity_KPSS

scalation.modeling.forecasting.Stationarity_KPSS
See theStationarity_KPSS companion object
class Stationarity_KPSS(yy: VectorD, lags_: Int, lagsType_: String, trend_: String) extends UnitRoot

The KPSS class provides capabilities of performing KPSS test to determine if a time series is stationary around a deterministic trend. This code is translated from the C++ code found in

Value parameters

lagsType_

type of lags, long or short

lags_

the number of lags to use

trend_

type of trend to test for

yy

the original time series vector

Attributes

See also

github.com/olmallet81/URT.

Companion
object
Graph
Supertypes
trait UnitRoot
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def canReject(alpha: Double): Boolean

Check to see if H0 can be rejected. Must call pvalue first to compute pval.

Check to see if H0 can be rejected. Must call pvalue first to compute pval.

Attributes

def computeStat(): Unit

Compute test statistics.

Compute test statistics.

Attributes

def olsDetrend(): Unit

OLS demeaning or detrending.

OLS demeaning or detrending.

Attributes

override def pvalue(st: Double): Double

Compute test statistic p-value.

Compute test statistic p-value.

Attributes

Definition Classes
def setData(): Unit

Reset y to the original data.

Reset y to the original data.

Attributes

override def show(st: Double): Unit

Output test results.

Output test results.

Attributes

Definition Classes
def statistic(): Double

Compute KPSS test statistic.

Compute KPSS test statistic.

Attributes

Inherited methods

def getPval(): Double

Get test pvalue.

Get test pvalue.

Attributes

Inherited from:
UnitRoot

Get test valid trends.

Get test valid trends.

Attributes

Inherited from:
UnitRoot
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

Inherited from:
UnitRoot
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

Inherited from:
UnitRoot
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

Inherited from:
UnitRoot
protected def setTrend(): Unit

Set regression trend.

Set regression trend.

Attributes

Inherited from:
UnitRoot

Inherited fields

protected var coeff: HashMap[Double, CriticalValues]

Attributes

Inherited from:
UnitRoot
protected var lags: Int

Attributes

Inherited from:
UnitRoot
protected var lagsType: String

Attributes

Inherited from:
UnitRoot
protected var newLags: Boolean

Attributes

Inherited from:
UnitRoot
protected var newTrend: Boolean

Attributes

Inherited from:
UnitRoot
protected val nobs: Int

Attributes

Inherited from:
UnitRoot
protected var pval: Double

Attributes

Inherited from:
UnitRoot
protected val testName: String

Attributes

Inherited from:
UnitRoot
protected var trend: String

Attributes

Inherited from:
UnitRoot
protected val validTrends: VectorS

Attributes

Inherited from:
UnitRoot