SourcePro C++ 13.0 |
SourcePro® C++ API Reference Guide |
Product Documentation: SourcePro C++ Documentation Home |
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 © 2014 Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Provide feedback to Rogue Wave about its documentation.