single.snp.test(snps, trait, adj.var = NULL, type = c("gaussian", "binomial", "families", "casecohort"), famid, patid, fid, mid, start.time, stop.time, subcohort, stratvar = NA, robust = FALSE, marker.label = NA, prt = TRUE, ties = "efron")
single.snp.test
returns an object of class data.frame containing the following components:
So far SURVIVAL data is not supported.
Cox proportional hazards regression modified for case cohort designs according to the Prentice method will be used by type="casecohort".
As genetic effect the allele dosis (0, 1, 2) is modelled.
Bauerfeind A, Ruether A, Weidinger S, Lee Y-A, Rohde K.
Multi-locus stepwise regression: a haplotype-based algorithm
for finding genetic associations applied to atopic dermatitis.
BMC Med Genet 2012;13(1):8.
single.haplotype.test
N <- 2000
nloci <- 14
set.seed(1234)
y <- sample(c(0, 1), N, replace = TRUE)
snp <- matrix(sample(c(1, 2, 3), N * nloci, replace = TRUE),
ncol = nloci)
colnames(snp) <- paste("SNP", 1:nloci, sep = "")
adj.var <- matrix(rnorm(N * 3), ncol = 3)
colnames(adj.var) <- paste("A", 1:3, sep = "")
sst <- single.snp.test(snps = snp, trait = y, adj.var = adj.var,
type = "binomial", prt = TRUE)
Run the code above in your browser using DataLab