Return the index of the variable that should be added to the current model according to the smallest KL-divergence (linear regression) or the largest score test (logistic regression).
choose.next(x, sigma2, fit, fitp, chosen, is.logistic)Design matrix.
Residual variance (1 for logistic regression).
Matrix of fitted values for the full model.
Matrix of fitted values for the projected model.
Vector of indices of the columns of x in the current submodel.
Set to TRUE for a logistic regression model.