Usage
sureAdd1(object, y, x, range=NULL, iter=250, tol=1e-8, ext=FALSE)
sureDrop1(object, y, x, range=NULL, iter=250, tol=1e-8, ext=FALSE)
sureStep(object, y, x, cv, direction=c("both","backward","forward"),
range=NULL, iter=250, steps=1000, tol=1e-8, ext=FALSE)
surStep(y, x, v, lower, upper, k, direction=c("both","backward",
"forward"), iter=250, max.terms=200, steps=1000, tol=1e-8)Arguments
object
initial model in model search; can be an object of sureEst. y
a n by p matrix, whose columns are dependent variables.
x
a n by m matrix, whose columns are predictor variables to select from.
range
a list; range[[j]] indicates which x's (all if NULL) correspond to which y[,j].
cv
critical value used in the likelihood ratio test to determine adding/dropping a term.
v
a list; v[[j]] indicates which x's to start with for y[,j].
lower
a list in the format of v; lower scope of the model.
upper
a list in the format of v; upper scope of the model.
k
penalty, 0 if missing or
direction
forward selection, backward elimination or stepwise.
iter
maximum number of iterations in a numerical process to estimate model parameters.
max.terms
maximum number of terms in the final model.
steps
maximum number of search steps.
tol
convergence tolerance.
ext
whether to perform an extensive search for an "optimal" model with the same number of QTL per phenotype.