SNPsurv.dat {SimHap}R Documentation

Example genotypic data for survival analysis

Description

SNPsurv.dat is an example genotypic data set containing single nucleotide polymorphism (SNP) genotypes for use with snp.surv and haplo.surv

Usage

data(SNPsurv.dat)

Format

A data frame with 38 observations on the following 4 variables.

ID
patient identifier.
SNP_1
a SNP vector containing biallelic SNP genotypes.
SNP_2
a SNP vector containing biallelic SNP genotypes.
SNP_3
a SNP vector containing biallelic SNP genotypes.

Details

Simulated SNP data for use with survPheno.dat

Examples


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)


[Package SimHap version 1.0.0 Index]