SNP.dat {SimHap}R Documentation

Example genotypic data

Description

SNP.dat is an example genotypic data set containing single nucleotide polymorphism (SNP) genotypes.

Usage

data(SNP.dat)

Format

A data frame with 180 observations on the following 5 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.
SNP_4
a SNP vector containing biallelic SNP genotypes.

Details

Simulated SNP data for use with pheno.dat

Examples


data(SNP.dat)

# transforms SNP.dat to an object containing 3 columns
# per SNP - additive, dominant and recessive, where genotypes
# defined in 'baseline' serve as the baseline genotypes
geno.dat <- SNP2Geno(SNP.dat, baseline=c("MM", "11", "GG", "CC"))

data(pheno.dat)
mymodel <- snp.quant(formula1=HDL~AGE+SBP+factor(SNP_1_add),
        formula2=HDL~AGE+SBP, geno=geno.dat, pheno=pheno.dat)
summary(mymodel)


[Package SimHap version 1.0.0 Index]