Packages

object Variable extends Error with Serializable

The Variable object provides utilities for variables.

Linear Supertypes
Serializable, Serializable, Error, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Variable
  2. Serializable
  3. Serializable
  4. Error
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val VAL0: Double
  5. val VAL1: Double
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  8. def dummyVar(tt: Int, shf: Int = shift, tmx: Int = tmax): VectoD

    Assign values for dummy variables based on a single categorical/treatment value 'tt'.

    Assign values for dummy variables based on a single categorical/treatment value 'tt'.

    tt

    the categorical/treatment value

    tmx

    the maximum categorical/treatment after shifting

  9. def dummyVars(tt: VectoI): MatriD

    Assign values for the dummy variables based on the categorical/treatment vector 'tt'.

    Assign values for the dummy variables based on the categorical/treatment vector 'tt'. A single categorical variable 'tt' with values 'ttmin' to 'ttmax' will be (1) shifted to the range 0 to 'tmax' and then replace by 'tmax' dummy variables/columns as follows:

    0 => 0, 0, 0 OR 1, 1, 1 1 => 1, 0, 0 OR 2, 1, 1 2 => 0, 1, 0 OR 1, 2, 1 3 => 0, 0, 1 OR 1, 1, 2

    Using (0, 1) for (VAL0, VAL1) is conventional, but using (1, 2) reduces collinearity, for example in QuadRegression. Note: one-hot encoding using 3 dummy variable leads to singular matrices.

    tt

    the categorical/treatment vector

  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  12. final def flaw(method: String, message: String): Unit
    Definition Classes
    Error
  13. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. def get_shift_tmax: (Int, Int)

    Return the shift in categorical/treatment variable to make it start at zero as well as the maximum value after shifting.

    Return the shift in categorical/treatment variable to make it start at zero as well as the maximum value after shifting. Must call 'dummyVars' first

  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  21. def toString(): String
    Definition Classes
    AnyRef → Any
  22. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  24. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from Serializable

Inherited from Error

Inherited from AnyRef

Inherited from Any

Ungrouped