Usage
pairwise.assoc.test.unconstrained.chisq(t0, t1) pairwise.assoc.test.unconstrained.gsq(t0, t1) pairwise.assoc.test.case.only(t1) pairwise.assoc.test.ind.3d(t0, t1) pairwise.assoc.test.pure.unconstrained(t0, t1) pairwise.assoc.test.kpy(t0, t1, prevalence, pen.initial = NULL, pxx.initial = NULL) pairwise.assoc.test.hwe.le.kpy(t0, t1, prevalence, pen.initial = NULL, f1.initial = NULL, f2.initial = NULL) pairwise.assoc.test.kpx.kpy(t0, t1, prevalence, pxx, pen.initial = NULL) pairwise.assoc.test.pop.kpy(t0, t1, tp, prevalence, pen.initial = NULL, pxx.initial = NULL) pairwise.assoc.test.pop.hwe.le.kpy(t0, t1, tp1, tp2, prevalence, pen.initial = NULL, f1.initial = NULL, f2.initial = NULL) pairwise.assoc.test.pure.pop.kpy(t0, t1, tp, prevalence, pen.initial = NULL, pxx.initial = NULL) pairwise.assoc.test.pure.pop.hwe.le.kpy(t0, t1, tp1, tp2, prevalence, pen.initial = NULL, f1.initial = NULL, f2.initial = NULL) conditional.assoc.test.pure.pop.hwe.le.kpy(t0, t1, tp1, tp2, prevalence, pen.initial = NULL, f1.initial = NULL, f2.initial = NULL)
Arguments
t0
A 3x3 matrix of genotype counts in the controls cohort
t1
A 3x3 matrix of genotype counts in the cases cohort
tp
A 3x3 matrix of genotype counts in the population cohort
tp1
A 3-component vector of genotype counts for the first (t0/t1
rows) locus in the population cohort
tp2
A 3-component vector of genotype counts for the second (t0/t1
columns) locus in the population cohort
prevalence
The population prevalence of the phenotype Pr(y=1) < 0.5
pxx
A 3x3 matrix of known genotypic distribution in the population Pr(x1,x2)
pen.initial
A 3x3 matrix of initial guess for the phenotypic penetrance Pr(y=1|x1,x2)
pxx.initial
A 3x3 matrix of initial guess for the genotypic distribution in the population Pr(x1,x2)
f1.initial
Initial guess for the MAF at the first (rows) locus
f2.initial
Initial guess for the MAF at the second (columns) locus