SNPsurv.dat {SimHap} | R Documentation |
SNPsurv.dat
is an example genotypic data set containing single nucleotide polymorphism (SNP) genotypes for use with snp.surv
and haplo.surv
data(SNPsurv.dat)
A data frame with 38 observations on the following 4 variables.
ID
SNP_1
SNP_2
SNP_3
Simulated SNP data for use with survPheno.dat
data(SNPsurv.dat) # transforms SNPlong.dat to an object containing 3 columns # per SNP - additive, dominant and recessive, where genotypes # defined in 'baseline' serve as the baseline genotypes survGeno.dat <- SNP2Geno(SNPsurv.dat, baseline=c("V2V2", "GG", "CC")) data(survPheno.dat) mymodel <- snp.surv(formula1=Surv(time, status)~age+SNP_1_add, formula2=Surv(time, status)~age, pheno=survPheno.dat, geno=survGeno.dat) summary(mymodel)