ExpandableVariable

scalation.modeling.ExpandableVariable

The ExpandableVariable trait provides the framwork for replacing categorical variables with dummy variables. A dummy variable having nl levels is replaced with nl-1 dummy variables.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def expand(zt: VectorD, nCat: Int): VectorD

Expand the vector zt into a vector of terms/columns including dummy variables.

Expand the vector zt into a vector of terms/columns including dummy variables.

Value parameters

nCat

the number of categorical variables in the zt

zt

the vector with categorical values (at the end) to expand

Attributes

def predict_ex(zt: VectorD): Double

Given the vector zt, expand it and predict the response value.

Given the vector zt, expand it and predict the response value.

Value parameters

zt

the vector with categorical values (at the end) to expand

Attributes