modSearch
is used internally by speff
to construct an optimal model for
prediction of the study endpoint or estimation of the missingness mechanism.
modSearch(formula, x, y, endpoint, method, optimal, force.in,
nvmax)
a formula object with the response on the left of the ~
operator, and the linear
predictor on the right.
a matrix of at least two predictors
a response vector
a character string specifying the type of the response variable; possible values are
"quantitative
" or "dichotomous
".
a character string specifying the type of search technique used in the model selection procedure;
possible values are "exhaustive
", "forward
", or "backward
".
specifies the optimization criterion for model selection; possible values are "cp
" for
Mallow's Cp, "bic
" for BIC, and "rsq
" for R-squared.
a vector of indices to columns of the design matrix that should be included in each regression model.
the maximum number of covariates considered for inclusion in a model.