Usage
A.mat(X,min.MAF=NULL,max.missing=NULL,impute.method="mean",tol=0.02,
n.core=1,shrink=NULL,return.imputed=FALSE)
Arguments
X
Matrix ($n \times m$) of unphased genotypes for $n$ lines and $m$ biallelic markers,
coded as {-1,0,1}. Fractional (imputed) and missing values (NA) are allowed.
min.MAF
Minimum minor allele frequency. The A matrix is not sensitive to rare alleles, so by default only monomorphic markers are removed.
max.missing
Maximum proportion of missing data; default removes completely missing markers.
impute.method
There are two options. The default is "mean", which imputes with the mean for each marker. The "EM" option imputes with an EM algorithm (see details).
tol
Specifies the convergence criterion for the EM algorithm (see details).
n.core
Specifies the number of cores to use for parallel execution of the EM algorithm.
shrink
Default behavior (shrink=NULL) is to use shrinkage estimation (see details) when the # of markers is less than 5 times the # of lines (m < 5n). To use shrinkage when m > 5n, set shrink=TRUE. To turn off shrinkage when m < 5n, set shrink=FALSE.
return.imputed
When TRUE, the imputed marker matrix is returned.