SourcePro® 2024.1 |
SourcePro® API Reference Guide |
Calculates the G statistic for a logistic model in comparison to the intercept-only model. More...
#include <rw/analytics/gpvalfun.h>
Inherits RWGStatisticFunctor.
Public Member Functions | |
RWGPValueFunctor () | |
virtual double | operator() (const RWGenMat< double > &predictorData, const RWMathVec< bool > &obsData, const RWMathVec< double > &calc) const |
Class RWGPValueFunctor calculates the G statistic for a logistic model in comparison to the intercept only model. This value has approximately a chi-squared distribution with p
degrees of freedom, where p
is the number of predictor variables. The P-value of the G statistic is returned.
This class may be used as the template parameter for the class RWLogRegModelSelector.
|
inline |
Constructs an evaluation function object.
|
virtual |
Given regression data, computes the G statistic by comparing the p
predictor variables in the model with the intercept only model. It returns the P-value of this statistic according to a chi-squared distribution with p
degrees of freedom.
Copyright © 2024 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved. |