R: Bivariate twin data example from Classic Mx Manual
example2
R Documentation
Bivariate twin data example from Classic Mx Manual
Description
Data set used in some of OpenMx's examples.
Usage
data("example2")
Format
A data frame with 800 observations on the following variables.
IDNum
ID number
TwinNum
Twin ID number
Zygosity
Zygosity of the twin
X
X variable for twins 1 and 2
Y
Y variable for twins 1 and 2
Details
Same as example1 but in tall format instead of wide.
Source
Classic Mx Manual.
References
The OpenMx User's guide can be found at http://openmx.psyc.virginia.edu/documentation.
Examples
data(example2)
plot(Y ~ X, data=example2)
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/example2_data.Rd_%03d_medium.png", width=480, height=480)
> ### Name: example2
> ### Title: Bivariate twin data example from Classic Mx Manual
> ### Aliases: example2
> ### Keywords: datasets
>
> ### ** Examples
>
> data(example2)
> plot(Y ~ X, data=example2)
>
>
>
>
>
> dev.off()
null device
1
>