Learn R Programming

fastR2 (version 0.2.0)

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