g02 Chapter Contents
g02 Chapter Introduction
NAG Library Manual

# NAG Library Function Documentnag_full_step_regsn_monit (g02ewc)

## 1  Purpose

An example monitor function for nag_full_step_regsn (g02efc).

## 2  Specification

 #include #include
 void nag_full_step_regsn_monit (Nag_FullStepwise flag, Integer var, double val, Nag_Comm *comm)

## 3  Description

Prints the progress of full stepwise selection of variables in a multiple regression to stdout.
None.

## 5  Arguments

1:     flagNag_FullStepwiseInput
On entry: the value of flag indicates the stage of the stepwise selection of explanatory variables.
${\mathbf{flag}}=\mathrm{Nag_AddVar}$
Variable var was added to the current model.
${\mathbf{flag}}=\mathrm{Nag_BeginBackward}$
Beginning the backward elimination step.
${\mathbf{flag}}=\mathrm{Nag_ColinearVar}$
Variable var failed the collinearity test and is excluded from the model.
${\mathbf{flag}}=\mathrm{Nag_DropVar}$
Variable var was dropped from the current model.
${\mathbf{flag}}=\mathrm{Nag_BeginForward}$
Beginning the forward selection step
${\mathbf{flag}}=\mathrm{Nag_NoRemoveVar}$
Backward elimination did not remove any variables from the current model.
${\mathbf{flag}}=\mathrm{Nag_BeginStepwise}$
Starting stepwise selection procedure.
${\mathbf{flag}}=\mathrm{Nag_VarianceRatio}$
The variance ratio for variable var takes the value val.
${\mathbf{flag}}=\mathrm{Nag_FinishStepwise}$
Finished stepwise selection procedure.
Constraint: ${\mathbf{flag}}=\mathrm{Nag_AddVar}$, $\mathrm{Nag_BeginBackward}$, $\mathrm{Nag_ColinearVar}$, $\mathrm{Nag_DropVar}$, $\mathrm{Nag_BeginForward}$, $\mathrm{Nag_NoRemoveVar}$, $\mathrm{Nag_BeginStepwise}$, $\mathrm{Nag_VarianceRatio}$ or $\mathrm{Nag_FinishStepwise}$.
2:     varIntegerInput
On entry: the index of the explanatory variable in the design matrix $Z$ to which flag pertains.
3:     valdoubleInput
On entry: if ${\mathbf{flag}}=\mathrm{Nag_VarianceRatio}$, val is the variance ratio value for the coefficient associated with explanatory variable index var.
4:     commNag_Comm *Communication Structure
The NAG communication argument (see Section 3.2.1.1 in the Essential Introduction).

None.

Not applicable.

Not applicable.