Creates a new instance of weighted StepwiseRegression using observation frequencies.

Namespace: Imsl.Stat
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.0.0

Syntax

C#
public StepwiseRegression(
	double[,] x,
	double[] y,
	double[] weights,
	double[] frequencies
)
Visual Basic (Declaration)
Public Sub New ( _
	x As Double(,), _
	y As Double(), _
	weights As Double(), _
	frequencies As Double() _
)
Visual C++
public:
StepwiseRegression(
	array<double,2>^ x, 
	array<double>^ y, 
	array<double>^ weights, 
	array<double>^ frequencies
)

Parameters

x
Type: array< System..::.Double ,2>[,](,)[,]
A double matrix of nObs by nVars, where nObs is the number of observations and nVars is the number of independent variables.
y
Type: array< System..::.Double >[]()[]
A double array containing the observations of the dependent variable.
weights
Type: array< System..::.Double >[]()[]
A double array containing the weight for each observation of x.
frequencies
Type: array< System..::.Double >[]()[]
A double array containing the frequency for each row of x.

Exceptions

ExceptionCondition
Imsl.Stat..::.TooManyObsDeletedException is thrown if more observations have been deleted than were originally entered
Imsl.Stat..::.MoreObsDelThanEnteredException is thrown if more observations are being deleted from the output covariance matrix than were originally entered
Imsl.Stat..::.DiffObsDeletedException is thrown if different observations are being deleted from the return matrix than were originally entered
Imsl.Stat..::.NegativeWeightException is thrown if a weight is less than zero.
Imsl.Stat..::.NegativeFreqException is thrown if a frequency is less than zero.

See Also