R: Example data for multiple regression among latent variables
latentMultipleRegExample2 | R Documentation |
Example data for multiple regression among latent variables
Description
Data set used in some of OpenMx's examples.
Usage
data("latentMultipleRegExample2")
Format
A data frame with 200 observations on the following variables.
X1 Factor 1 indicator
X2 Factor 1 indicator
X3 Factor 1 indicator
X4 Factor 1 indicator
X5 Factor 2 indicator
X6 Factor 2 indicator
X7 Factor 2 indicator
X8 Factor 2 indicator
X9 Factor 3 indicator
X10 Factor 3 indicator
X11 Factor 3 indicator
X12 Factor 3 indicator
Details
Factor 1 strongly predicts factor 3. Factor 2 weakly predicts factor 3. Very similar to latentMultipleRegExample1.
Source
Simulated.
References
The OpenMx User's guide can be found at http://openmx.psyc.virginia.edu/documentation.
Examples
data(latentMultipleRegExample2)
round(cor(latentMultipleRegExample2), 2)
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/latentMultipleRegExample2_data.Rd_%03d_medium.png", width=480, height=480)
> ### Name: latentMultipleRegExample2
> ### Title: Example data for multiple regression among latent variables
> ### Aliases: latentMultipleRegExample2
> ### Keywords: datasets
>
> ### ** Examples
>
> data(latentMultipleRegExample2)
> round(cor(latentMultipleRegExample2), 2)
X1 X2 X3 X4 X5 X6 X7 X8 X9 X10 X11 X12
X1 1.00 0.65 0.69 0.69 0.49 0.41 0.44 0.48 0.39 0.32 0.28 0.31
X2 0.65 1.00 0.65 0.67 0.44 0.35 0.46 0.43 0.35 0.29 0.28 0.30
X3 0.69 0.65 1.00 0.78 0.55 0.42 0.52 0.53 0.47 0.29 0.40 0.33
X4 0.69 0.67 0.78 1.00 0.53 0.49 0.59 0.54 0.43 0.29 0.37 0.34
X5 0.49 0.44 0.55 0.53 1.00 0.43 0.61 0.57 0.29 0.15 0.23 0.18
X6 0.41 0.35 0.42 0.49 0.43 1.00 0.50 0.41 0.30 0.19 0.23 0.22
X7 0.44 0.46 0.52 0.59 0.61 0.50 1.00 0.63 0.29 0.24 0.26 0.23
X8 0.48 0.43 0.53 0.54 0.57 0.41 0.63 1.00 0.33 0.23 0.22 0.24
X9 0.39 0.35 0.47 0.43 0.29 0.30 0.29 0.33 1.00 0.48 0.45 0.45
X10 0.32 0.29 0.29 0.29 0.15 0.19 0.24 0.23 0.48 1.00 0.54 0.45
X11 0.28 0.28 0.40 0.37 0.23 0.23 0.26 0.22 0.45 0.54 1.00 0.53
X12 0.31 0.30 0.33 0.34 0.18 0.22 0.23 0.24 0.45 0.45 0.53 1.00
>
>
>
>
>
> dev.off()
null device
1
>
|