RegressionWLS

scalation.modeling.RegressionWLS
See theRegressionWLS companion class
object RegressionWLS

The RegressionWLS companion object provides methods for setting weights and testing.

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply(xy: MatrixD, fname: Array[String], ww: VectorD, hparam: HyperParameter)(col: Int): RegressionWLS

Create a RegressionWLS object from a combined data-response matrix.

Create a RegressionWLS object from a combined data-response matrix.

Value parameters

col

the designated response column (defaults to the last column)

fname

the feature/variable names (defaults to null)

hparam

the hyper-parameters (defaults to Regression.hp)

ww

the weight vector (defaults to null)

xy

the combined data-response matrix (predictors and response)

Attributes

def rad(x: MatrixD, y: VectorD): VectorD

Return the Root Absolute Deviations (RAD's) for each instance.

Return the Root Absolute Deviations (RAD's) for each instance.

Value parameters

x

the input/data m-by-n matrix

y

the response/output m-vector

Attributes

def rescale(x: MatrixD, y: VectorD, fname: Array[String], ww: VectorD, hparam: HyperParameter): RegressionWLS

Reweight the data matrix x by multiplying by the root weight rtW.

Reweight the data matrix x by multiplying by the root weight rtW.

Value parameters

rW

the root weight vector (rtW: either rootW or rW)

x

the input/data m-by-n matrix

Attributes

Reweight the response vector matrix y by multiplying by the root weight rtW.

Reweight the response vector matrix y by multiplying by the root weight rtW.

Value parameters

rW

the root weight vector (rtW: either rootW or rW)

y

the response vector

Attributes

def setWeights(x: MatrixD, y: VectorD, w0: VectorD): Unit

Estimate weights for the variables according to the reciprocal predicted rad's. Save the weight vector w and root weight vector rootW for the current model in companion object variables.

Estimate weights for the variables according to the reciprocal predicted rad's. Save the weight vector w and root weight vector rootW for the current model in companion object variables.

Value parameters

w0

the initial weight vector (if null, compute it)

x

the input/data m-by-n matrix

y

the response/output m-vector

Attributes

def setWeights0(x: MatrixD, y: VectorD, w0: VectorD): Unit

Estimate weights for the variables according to the reciprocal actual rad's. Save the weight vector w and root weight vector rootW for the current model in companion object variables.

Estimate weights for the variables according to the reciprocal actual rad's. Save the weight vector w and root weight vector rootW for the current model in companion object variables.

Value parameters

w0

the initial weight vector (if null, compute it)

x

the input/data m-by-n matrix

y

the response/output m-vector

Attributes

See also

setWeights that used predicted rad

def test(x: MatrixD, y: VectorD, z: VectorD, w: VectorD): Unit

Test the given regression problem using WLS.

Test the given regression problem using WLS.

Value parameters

w

the root weights

x

the data matrix

y

the response vector

z

a vector to predict

Attributes

Return the weight vector for the current model.

Return the weight vector for the current model.

Attributes