Last data update: 2014.03.03

R: Twin data on weight and height
myTwinDataR Documentation

Twin data on weight and height

Description

Data set used in some of OpenMx's examples.

Usage

data("myTwinData")

Format

A data frame with 3808 observations on the following variables.

fam

Family ID variable

age

Age of the twin pair. Range: 17 to 88.

zyg

Integer codes for zygosity and gender combinations

part
wt1

Weight in kilograms for twin 1

wt2

Weight in kilograms for twin 2

ht1

Height in meters for twin 1

ht2

Height in meters for twin 2

htwt1

Product of ht and wt for twin 1

htwt2

Product of ht and wt for twin 2

bmi1

Body Mass Index for twin 1

bmi2

Body Mass Index for twin 2

Details

Height and weight are highly correlated, and each individually highly heritable. These data present and opportunity for multivariate behavior genetics modeling.

Source

Timothy Bates

References

The OpenMx User's guide can be found at http://openmx.psyc.virginia.edu/documentation.

Examples

data(myTwinData)

plot( ht1 ~ wt1, myTwinData)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(OpenMx)
Loading required package: digest
Loading required package: MASS
Loading required package: Matrix
Loading required package: Rcpp
Loading required package: parallel

Attaching package: 'OpenMx'

The following objects are masked from 'package:Matrix':

    %&%, expm

> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/OpenMx/myTwinData_data.Rd_%03d_medium.png", width=480, height=480)
> ### Name: myTwinData
> ### Title: Twin data on weight and height
> ### Aliases: myTwinData
> ### Keywords: datasets
> 
> ### ** Examples
> 
> data(myTwinData)
> 
> plot( ht1 ~ wt1, myTwinData)
> 
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>