Download Haplo Stats (version 1.5.0) Statistical Methods for

Transcript
ˆ
haplo.effect: the coding of haplotypes as additive, dominant, or recessive
ˆ
haplo.base: code for the baseline haplotype
ˆ
min.count: minimum haplotype count
This second example below creates columns for specific haplotype codes that were most interesting in score.gaus.add, haplotypes with alleles 21-3-8 and 62-2-7, corresponding to codes 4 and
138 in haplo.em, respectively. Assume we want to test their individual effects when they are coded
with haplo.effect=”dominant”.
> # create haplotype effect cols for haps 4 and 138
> hap4.hap138.frame <- haplo.design(save.em, hapcodes=c(4,138),
+
haplo.effect="dominant")
> hap4.hap138.frame[1:10,]
1
2
3
4
5
6
7
8
9
10
hap.4
0
0
0
0
0
1
0
0
0
0
hap.138
0.0000000
0.8746766
0.0000000
0.0000000
0.0000000
0.0000000
1.0000000
0.0000000
0.1358696
0.0000000
> dat.glm <- data.frame(resp, male, age,
+
hap.4=hap4.hap138.frame$hap.4,
+
hap.138=hap4.hap138.frame$hap.138)
> glm.hap4.hap138 <- glm(resp ~ male + age + hap.4 + hap.138,
+
family="gaussian", data=dat.glm)
> summary(glm.hap4.hap138)
Call:
glm(formula = resp ~ male + age + hap.4 + hap.138, family = "gaussian",
data = dat.glm)
Deviance Residuals:
Min
1Q
Median
-2.32614 -1.07489 -0.06559
3Q
1.04483
Max
2.39044
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 1.913834
0.229577
8.336 9.11e-15 ***
male
0.048588
0.155290
0.313
0.7547
57