| NewtonRaphsonParameterCalcCalculateParameters Method |
Calculate the parameters for the logistic model.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public DoubleVector CalculateParameters(
DoubleMatrix X,
DoubleVector observations
)
Public Function CalculateParameters (
X As DoubleMatrix,
observations As DoubleVector
) As DoubleVector
public:
virtual DoubleVector^ CalculateParameters(
DoubleMatrix^ X,
DoubleVector^ observations
) sealed
abstract CalculateParameters :
X : DoubleMatrix *
observations : DoubleVector -> DoubleVector
override CalculateParameters :
X : DoubleMatrix *
observations : DoubleVector -> DoubleVector
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
DoubleVectorThe 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