| twinData {OpenMx} | R Documentation |
Australian data on body mass index (BMI) assessed in both MZ and DZ twins, and saved in the text file twinData.txt.
It is a wide dataset, with two individuals per line. Data include zygosity (zyg), along with heights in metres, weights in kg, and the derived variables BMI in kg/m^2 (stored as "htwt1" and "htwt2"), as well as the log of this variable, stored here as bm1 and bm2. The logged values are more closely normally distributed.
Age of course occurs only once, as the two twins of each pair share a common age. fam is a family identifier.
data(twinData)
A data frame with 3808 observations on the following 12 variables.
fama numeric vector
agea numeric vector
zyga numeric vector
parta numeric vector
wt1a numeric vector
wt2a numeric vector
ht1a numeric vector
ht2a numeric vector
htwt1a numeric vector
htwt2a numeric vector
bmi1a numeric vector
bmi2a numeric vector
Zygosity is coded as follows 1 == MZ females 2 == MZ males 3 == DZ females 4 == DZ males 5 == DZ opposite sex pairs
data(twinData) str(twinData) plot(wt1~wt2, data=twinData) mzData <- as.matrix(subset(myTwinData, zyg==1, c(bmi1,bmi2))) dzData <- as.matrix(subset(myTwinData, zyg==3, c(bmi1,bmi2)))