Learn R Programming

fastR (version 0.10.3)

pheno: FUSION type 2 diabetes study

Description

Phenotype and genotype data from the Finland United States Investigation of NIDDM (type 2) Diabetes (FUSION) study.

Arguments

Format

Data frames with the following variables.

  • id subject ID number for matching between data sets

  • t2d a factor with levels case control

  • bmi body mass index

  • sex a factor with levels F M

  • age age of subject at time phenotypes were colelcted

  • smoker a factor with levels former never occasional regular

  • chol total cholesterol

  • waist waist circumference (cm)

  • weight weight (kg)

  • height height (cm)

  • whr waist hip ratio

  • sbp systolic blood pressure

  • dbp diastolic blood pressure

  • marker RS name of SNP

  • markerID numeric ID for SNP

  • allele1 first allele coded as 1=A, 2=C, 3=G, 4=T

  • allele2 second allele coded as 1=A, 2=C, 3=G, 4=T

  • genotype both alleles coded as a factor

  • Adose number of A alleles

  • Cdose number of C alleles

  • Gdose number of G alleles

  • Tdose number of T alleles

Examples

Run this code
# NOT RUN {
data(pheno); data(fusion1); data(fusion2)
fusion1m <- merge(fusion1, pheno, by="id", all.x=FALSE, all.y=FALSE) 
xtabs(~t2d + genotype, data=fusion1m) 
xtabs(~t2d + Gdose, data=fusion1m) 
chisq.test( xtabs( ~t2d + genotype, data=fusion1m ) )
f1.glm <- glm( factor(t2d) ~ Gdose, data=fusion1m, family=binomial) 
summary(f1.glm)

# }

Run the code above in your browser using DataLab