Usage
colEMlrt(mat.snp, model = c("general", "dominant", "recessive"), maternal = FALSE, parentMissing = c("father", "mother", "either"), iter = 40, eps = 10^-16)
"print"(x, top = 5, digits = 4, ...)
Arguments
mat.snp
a numeric matrix in which each column represents a SNP. Each column must be
a numeric vector of length $3 * t$ representing a SNP genotyped at $t$ trios. Each of the $t$
blocks must consist of the genotypes of father, mother, and offspring
(in this order). The genotypes must be coded by 0, 1, and 2. Missing values are allowed and need to be coded by NA
.
This matrix in genotype format might be generated from a ped-file by, e.g., employing ped2geno
.
model
a character string specifying the genetic effect that should be considered in the Poisson regression.
By default, the general model proposed by Weinberg (1999) is fitted.
Alternatively, a dominant or recessive mode of inheritance might be considered by setting model = "dominant"
or model = "recessive"
, respectively. Abbreviations such as "dom"
or "rec"
are also accepted.
maternal
logical specifying whether parameters for a maternal effects should be added to the Poisson regression model.
If TRUE
and model = "general"
, the most general model described by Weinberg (1999)
is used.
parentMissing
a character string specifying whether the genotype of the father
, the mother
, or either
the mother or the father is allowed to be missing. By default, only the genotype of the father is allowed to be missing in a trio.
Thus, in this case, all complete trios and all trios in which data are available for the father and the offspring are used in the
testing of the considered SNP. If parentMissing = "either"
, all trios in which the genotype of the offspring or the genotypes
of both parents are missing for a particular SNP are ignored in the analysis of this SNP.
iter
a non-negative numeric value specifying the maximum number of iterations that should be used in the application of the expectation maximization algorithm.
eps
a non-negative small numeric value specifying the accuracy for the stopping criterion of the EM algorithm.
If the sum of the squared differences of the estimated expected numbers of trios over the 15 possible genotype combinations
in trios between two consecutive iterations of the EM algorithm is smaller than eps
, the EM algorithm stops. Often, less than ten
genotype combinations are required.
x
an object of class colEMlrt
, i.e. the output of colEMlrt
.
digits
number of digits that should be printed.
top
number of SNPs that should be printed. If top
is less than or equal to zero or
larger than the total number of SNPs in mat.snp
, then the statistics for all SNPs are printed in the order as they were in the genotype matrix
used as input into colEMlrt
. Otherwise, the top
interactions with the smallest p-values are printed.