Example_Covid

scalation.modeling.forecasting.Example_Covid
object Example_Covid

The Example_Covid object provides a convenient way to load Covid-19 weekly data.

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 header: Array[String]