Click or drag to resize

LogisticRegressionFitAnalysisParameterCalcHLStatistic(FuncLogisticRegressionParameterCalc, Int32) Method

Computes the Hosmer Lemeshow statistic using the given functor to determine the number of groups and the number of observations in each group. The groups will be determined as follows: First, the observations are sorted in increasing order of their estimated probability. The first group will contain the first groups[0] observations from this sequence, the second group will contain the next groups[1] observations, and so forth.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public LogisticRegressionFitAnalysisParameterCalcHosmerLemeshowStatistic HLStatistic(
	Func<LogisticRegression<ParameterCalc>, int[]> groups
)

Parameters

groups  FuncLogisticRegressionParameterCalc, Int32
A functor which, given the logistic regression, returns any a array of group counts. The HL statistic will be computed using groups.Length groups with the number of observations in the ith group equal to groups[i].

Return Value

LogisticRegressionFitAnalysisParameterCalcHosmerLemeshowStatistic
See Also