Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

RWLogRegModelSelector<F>



Data Type and Member Function Indexes
(exclusive of constructors and destructors)

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;
RWBoolean  
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 DocumentContentsIndexNext file

©Copyright 1999, Rogue Wave Software, Inc.
Send mail to report errors or comment on the documentation.