Usage
haplo.cc(y, geno, locus.label=NA, ci.prob=0.95,
miss.val=c(0,NA), weights=NULL, eps.svd=1e-5,
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.
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
weights
the weights for observations (rows of the data frame). By default, all
observations are weighted equally. One use is to correct for
over-sampling of cases in a case-control sample.
eps.svd
epsilon value for singular value cutoff; to be used in the generalized
inverse calculation on the variance matrix of the score vector. The
degrees of freedom for the global score test is 1 less than the number of
haplotypes that are scored (k-1). The de
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.