Example_Covid

scalation.modeling.forecasting.Example_Covid
object Example_Covid

The Example_Covid object provides a convenient way to load Covid-19 weekly data. See test cases (odd In-ST, even TnT Split) below for Loss/Equations Optimizer (a: 1, 2) Plot and EDA - - Univariate: (b: 3, 4) Baseline Models none or CSSE none or various (c: 5, 6) AR(p) Models Yule-Walker Durbin-Levinson (d: 7, 8) ARMA(p, q=0) Models CSSE BFGS (e: 9, 10) ARY(p) Models CSSE QR Factorization (f: 11, 12) ARY_D(p) Models CSSE + Direct QR Factorization (g: 13, 14) ARMA(p, q=1) Models CSSE BFGS Multivariate: (h: 15, 16) ARX(p, 2, 2) Models CSSE QR Factorization (i: 17, 18) ARX_D Models CSSE + Direct QR Factorization (j: 19, 20) ARX_Quad_D Models CSSE QR Factorization

Known Bugs: 13, 14

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def loadData(x_strs: Array[String], y_str: String, trim: Int): (MatrixD, VectorD)

Load the Covid-19 weekly data into a matrix for the exogenous variables x and a vector for the response/endogenous variable y.

Load the Covid-19 weekly data into a matrix for the exogenous variables x and a vector for the response/endogenous variable y.

Value parameters

trim

the number of initial rows to trim away (e.g., they are all 0)

x_strs

the column names for the exogenous variables x

y_str

the column name for the endogenous variable y

Attributes

def loadData_y(y_str: String, trim: Int): VectorD

Load the Covid-19 weekly data into a vector for the response/endogenous variable y.

Load the Covid-19 weekly data into a vector for the response/endogenous variable y.

Value parameters

trim

the number of initial rows to trim away (e.g., they are all 0)

y_str

the column name for the endogenous variable y

Attributes

def loadData_yy(y_strs: Array[String], trim: Int): MatrixD

Load the Covid-19 weekly data into a matrix for the variables y.

Load the Covid-19 weekly data into a matrix for the variables y.

Value parameters

trim

the number of initial rows to trim away (e.g., they are all 0)

y_str

the column names for the variables y (e.g., used in a VAR model)

Attributes

Concrete fields

val NO_EXO: Array[String]
val fileName: String
val header: Array[String]
val response: String
val y: VectorD
val yy: VectorD