Usage
mtcmimAdd1(obj, y, x, xid, mpos, mdat, pp=1, len=1, type=1,
iter=2500, tol=1e-8, ext=FALSE)
mtcmimDrop1(obj, y, x, xid, mpos, mdat, pp=1, len=1, type=1,
iter=2500, tol=1e-8, ext=FALSE)
mtcmimStep(obj, y, x, xid, mpos, mdat, cv=0,
direction=c("both", "backward", "forward"), pp=1, len=1,
type=1, iter=2500, tol=1e-8, ext=FALSE)Arguments
y
n by p matrix, whose columns are dependent variables.
x
covariates; n by m numerical matrix.
xid
list of length p; xid[[j]] specifies columns of x as covariates for y[,j] .
mpos
data frame (id=marker index, ch=chromosome id, m=marker index on the chromosome, dist=genetic position in cM on the chromosome). Chromosome id should be an integer.
mdat
matrix of n rows; marker genotypes (1 or 0). columns should correspond to markers in the order.
pp
mapping population: BC-1, RIL-selfing-2, RIL-brother-sister-mating-3.
len
step length in search.
type
1 if traits can have the different sets of covariates and QTL, 2 if all have the same set of covariates and QTL.
ext
whether to perform an extensive search.
cv
critical value used in the likelihood ratio test to determine adding/dropping a QTL.
direction
forward selection, backward elimination or both directions.
iter
maximum number of iterations in a numerical process to estimate model parameters.
tol
convergence tolerance.