Usage
haplo.cc(y, geno, haplo.min.count=5, locus.label=NA, ci.prob=0.95, miss.val=c(0,NA),
simulate=FALSE, sim.control=score.sim.control(),
control=haplo.glm.control())
Arguments
y
Vector of trait values, must be 1 for cases and 0 for controls.
geno
Matrix of alleles, such that each locus has a pair of
adjacent columns of alleles, and the order of columns
corresponds to the order of loci on a chromosome. If
there are K loci, then ncol(geno) = 2*K. Rows represent
alleles for each subject.
haplo.min.count
The minimum number of expected counts for a haplotype in the sample
based on estimated frequencies.
ci.prob
Probability level for confidence interval on the Odds Ratios of
each haplotype to span the true value.
locus.label
Vector of labels for loci, of length K (see definition of geno matrix)
miss.val
Vector of codes for missing values of alleles
simulate
Logical: if [F]alse, no empirical p-values are computed; if [T]rue,
simulations are performed within haplo.score. Specific simulation parameters
can be controlled in the sim.control parameter list.
sim.control
A list of control parameters to determine how simulations are
performed for simulated p-values. The list is created by the function
score.sim.control and the default values of this function can be
changed as desired. See score.sim.control for details.
control
A list of control parameters for managing the execution of
haplo.cc. The list is created by the function haplo.glm.control, which
also manages control parameters for the execution of haplo.em.
References
Schaid DJ, Rowland CM, Tines DE, Jacobson RM, Poland GA.
"Score tests for association of traits with haplotypes when
linkage phase is ambiguous." Amer J Hum Genet. 70 (2002): 425-434.Lake S, LH, Silverman E, Weiss S, Laird N, Schaid DJ. "Estimation and
tests of haplotype-environment interaction when linkage phase is
ambiguous. Human Heredity. 55 (2003): 56-65