Usage
snpgdsIndInb(gdsobj, sample.id=NULL, snp.id=NULL, autosome.only=TRUE, remove.monosnp=TRUE, maf=NaN, missing.rate=NaN, method=c("mom.weir", "mom.visscher", "mle"), allele.freq=NULL, out.num.iter=TRUE, reltol=.Machine$double.eps^0.75, verbose=TRUE)
Arguments
sample.id
a vector of sample id specifying selected samples;
if NULL, all samples are used
snp.id
a vector of snp id specifying selected SNPs;
if NULL, all SNPs are used
autosome.only
if TRUE
, use autosomal SNPs only; if it is a
numeric or character value, keep SNPs according to the specified
chromosome
remove.monosnp
if TRUE, remove monomorphic SNPs
maf
to use the SNPs with ">= maf" only; if NaN, no MAF threshold
missing.rate
to use the SNPs with "
allele.freq
to specify the allele frequencies; if NULL, the allele
frequencies are estimated from the given samples
out.num.iter
output the numbers of iterations
reltol
relative convergence tolerance used in MLE; the algorithm
stops if it is unable to reduce the value of log likelihood by a
factor of $reltol * (abs(log likelihood with the initial parameters)
+ reltol)$ at a step.
verbose
if TRUE, show information