|
a |
|
b/man/choose.next.Rd |
|
|
1 |
% Generated by roxygen2: do not edit by hand |
|
|
2 |
% Please edit documentation in R/projection.R |
|
|
3 |
\name{choose.next} |
|
|
4 |
\alias{choose.next} |
|
|
5 |
\title{Next variable to enter the current submodel} |
|
|
6 |
\usage{ |
|
|
7 |
choose.next(x, sigma2, fit, fitp, chosen, is.logistic) |
|
|
8 |
} |
|
|
9 |
\arguments{ |
|
|
10 |
\item{x}{Design matrix.} |
|
|
11 |
|
|
|
12 |
\item{sigma2}{Residual variance (1 for logistic regression).} |
|
|
13 |
|
|
|
14 |
\item{fit}{Matrix of fitted values for the full model.} |
|
|
15 |
|
|
|
16 |
\item{fitp}{Matrix of fitted values for the projected model.} |
|
|
17 |
|
|
|
18 |
\item{chosen}{Vector of indices of the columns of \code{x} in the current submodel.} |
|
|
19 |
|
|
|
20 |
\item{is.logistic}{Set to \code{TRUE} for a logistic regression model.} |
|
|
21 |
} |
|
|
22 |
\description{ |
|
|
23 |
Return the index of the variable that should be added to the current model |
|
|
24 |
according to the smallest KL-divergence (linear regression) or the largest |
|
|
25 |
score test (logistic regression). |
|
|
26 |
} |
|
|
27 |
\keyword{internal} |