Click or drag to resize

NewtonRaphsonParameterCalcCalculateParameters Method

Calculate the parameters for the logistic model.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public DoubleVector CalculateParameters(
	DoubleMatrix X,
	DoubleVector observations
)

Parameters

X  DoubleMatrix
Matrix of subject data. Rows correspond to subjects.
observations  DoubleVector
Vector of zeros and ones containing the observed values of the outcomes. A zero entry indicates a negative outcome and a one indicates a positive outcome.

Return Value

DoubleVector
The calculated model parameters.

Implements

ILogisticRegressionCalcCalculateParameters(DoubleMatrix, DoubleVector)
Remarks
If the FailIfNotFullRank is true and the input matrix X does not have full rank the calculation will fail, the IsGood property will be false and a vector of NaN's will be returned.
See Also