Packages

t

scalation.analytics

ExpandableVariable

trait ExpandableVariable extends AnyRef

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

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

Abstract Value Members

  1. abstract def expand(zt: VectoD, cat: Int = 1): VectoD

    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.

    zt

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

  2. abstract def predict_ex(zt: VectoD): Double

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

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

    zt

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