o

scalaglm

TimeSeries

object TimeSeries

Utilities for multivariate time series

These utilities assume that the time series is stored in a Breeze DMD with variables/component series in columns, and observations in rows with the first row corresponding to the first observation and the last row to the last.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TimeSeries
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def autocovariance(x: DMD, lag: Int, centre: Boolean = true): DMD

    Compute the auto-covariance of the time series at a given lag

    Compute the auto-covariance of the time series at a given lag

    x

    Time series

    lag

    The lag at which the auto-covariance is to be computed (can be negative)

    centre

    Does the time series need to be centred?

    returns

    Auto-covariance matrix

  6. def autocovariances(x: DMD, lagMax: Int, centre: Boolean = true): List[DMD]

    Compute a set of auto-covariance matrices

    Compute a set of auto-covariance matrices

    x

    Time series

    lagMax

    The maximum lag required

    centre

    Does the time series need to be centred?

    returns

    List of lagMax+1 auto-covariance matrices (from lag 0 to lagMax)

  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  8. def correlationMat(x: DMD, centre: Boolean = true): DMD

    The correlation matrix of a time series

    The correlation matrix of a time series

    x

    A time series

    centre

    Does the time series need to be centred?

    returns

    Correlation matrix

  9. def covariance(x: DMD, y: DMD, centre: Boolean = true): DMD

    Compute the covariance between two time series of the same length

    Compute the covariance between two time series of the same length

    x

    A time series

    y

    Another time series

    centre

    Do the series need to be centred, first?

    returns

    Covariance matrix

  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  12. def fitVar(x: DMD, p: Int, centre: Boolean = true): (List[DMD], DMD)

    Fit a mean-zero VAR(p) model to a time series via least squares.

    Fit a mean-zero VAR(p) model to a time series via least squares. Since the model being fit is mean zero, you may want to mean-centre your data.

    x

    Time series

    p

    The order of the VAR(p) model to be fits

    centre

    Mean-centre the time series before fitting?

    returns

    The list of p fitted VAR matrices, together with the lower Cholesky triangle of the estimated innovation variance matrix

  13. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. def isStat(phi: List[DMD]): Boolean

    Check whether a given set of VAR matrices (such as returned by fitVar) correspond to a VAR(p) model that is stationary

    Check whether a given set of VAR matrices (such as returned by fitVar) correspond to a VAR(p) model that is stationary

    phi

    List of VAR matrices

    returns

    Is this model stationary?

  17. def meanCentre(x: DMD): DMD

    Sweep out the mean of each component series

    Sweep out the mean of each component series

    x

    A multivariate time series

    returns

    A mean zero time series

  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  21. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  22. def toString(): String
    Definition Classes
    AnyRef → Any
  23. def varianceMat(x: DMD, centre: Boolean = true): DMD

    The variance matrix of a time series

    The variance matrix of a time series

    x

    A time series

    centre

    Does the time series need to be centred?

    returns

    Variance matrix

  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from AnyRef

Inherited from Any

Ungrouped