Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Business Analysis Module Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

RWLogRegModelSelector<F>


Does not inherit

Local Index

Members

Non-Members

Synopsis

#include <rw/analytics/gpvalfun.h>
#include <rw/analytics/lgmodsel.h>
#include <rw/analytics/logregress.h>

RWLogisticRegression lr;
RWLogRegModelSelector<RWGPValueFunctor> 
modelSelector( lr, rwForwardSelection );

Description

RWLogRegModelSelector<F> is the class for logistic regression model selection. Provided with a logistic regression model containing a set of candidate predictor variables, the RWLogRegModelSelector class selects a subset of predictor variables that still accounts well for the variation in the regression model's observation variable. The criteria for selecting one predictor subset over another are determined by the template parameter F. Class F is a function object that returns a numerical value whenever it is given a regression matrix, an observation vector, and parameter estimates.

To be used as a template parameter for RWLogRegModelSelector, a class F must implement the following interface:

Example

Public Constructors

RWLogRegModelSelector(); 
RWLogRegModelSelector(const RWLogRegModelSelector<F>&);
RWLogRegModelSelector(const RWLogisticRegression& reg, 
                      RWSearchMethod s);

Public Member Functions

const RWRegressionCalc<T,S>& 
calcMethod() const;
double
evalFunctionForSelected() const;
bool  
fail() const;
RWCString 
failMessage() const;
RWSearchMethod 
searchMethod() const;
const RWBitVec& 
selectedParamIndices() const;
const RWBitVec& 
selectedParamIndices(RWSearchMethod s);
const RWMathVec<T>& 
selectedParamValues() const;
void 
setCalcMethod(const RWRegressionCalc<T,S>& c);
void 
setRegression(const RWLogisticRegression&);
void 
setSearchMethod(RWSearchMethod s);

Public Member Operator

RWLogRegModelSelector<F>& 
operator=(const RWLogRegModelSelector<F>& ms);

Global Enumerations

enum 
RWSearchMethod {rwForwardSelection, 
                rwBackwardSelection, 
                rwStepwiseSelection, 
                rwExhaustiveSelection}


Previous fileTop of DocumentContentsIndex pageNext file

© Copyright 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.
Contact Rogue Wave about documentation or support issues.