adf

package
v0.0.0-...-3e6c4c2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LPenalty      = 0.0001 // L penalty to pass to ridge regression
	DefaultPValue = -3.45  // Test p-value threshold
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ADF

type ADF struct {
	Series          []float64 // The time series to test
	PValueThreshold float64   // The p-value threshold for the test
	Statistic       float64   // The test statistic
	Lag             int       // The lag to use when running the test
}

An instance of an ADF test

func New

func New(series []float64, pvalue float64, lag int) *ADF

New creates and returns a new ADF test.

func (ADF) IsStationary

func (adf ADF) IsStationary() bool

IsStationary returns true if the tested time series is stationary.

func (*ADF) Run

func (adf *ADF) Run()

Run runs the Augmented Dickey-Fuller test.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL