SNPlong.dat {SimHap}R Documentation

Example genotypic data for longitudinal analysis

Description

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

Usage

data(SNPlong.dat)

Format

A data frame with 99 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 longPheno.dat

Examples


data(SNPlong.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
longGeno.dat <- SNP2Geno(SNPlong.dat, baseline=c("AA", "GG", "V2V2"))

data(longPheno.dat)
mymodel <- snp.long(fixed=fev1f~SNP_1_add, random=~1|id, 
        geno=longGeno.dat, pheno=longPheno.dat, form=~year|id)
summary(mymodel)


[Package SimHap version 1.0.0 Index]