Last data update: 2014.03.03

R: Example Factor Analysis Data for Scaling the Model
factorScaleExample2R Documentation

Example Factor Analysis Data for Scaling the Model

Description

Data set used in some of OpenMx's examples.

Usage

data("factorScaleExample2")

Format

A data frame with 200 observations on the following variables.

X1
X2
X3
X4
X5
X6
X7
X8
X9
X10
X11
X12

Details

This appears to be a three factor model with factor 1 loading on X1-X4, factor 2 on X5-X8, and factor 3 on X9-X12. It differs from factorScaleExample1 in the scaling of the varialbes.

Source

Simulated

References

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

Examples

data(factorScaleExample2)
round(cor(factorScaleExample2), 2)

data(factorScaleExample2)
plot(sapply(factorScaleExample1, var), type='l', ylim=c(0, 6), lwd=3)
lines(1:12, sapply(factorScaleExample2, var), col='blue', lwd=3)

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/factorScaleExample2_data.Rd_%03d_medium.png", width=480, height=480)
> ### Name: factorScaleExample2
> ### Title: Example Factor Analysis Data for Scaling the Model
> ### Aliases: factorScaleExample2
> ### Keywords: datasets
> 
> ### ** Examples
> 
> data(factorScaleExample2)
> round(cor(factorScaleExample2), 2)
      X1   X2   X3   X4   X5   X6   X7   X8   X9  X10  X11  X12
X1  1.00 0.31 0.41 0.42 0.29 0.12 0.24 0.20 0.22 0.21 0.15 0.18
X2  0.31 1.00 0.39 0.38 0.19 0.17 0.20 0.20 0.20 0.20 0.18 0.14
X3  0.41 0.39 1.00 0.53 0.22 0.19 0.18 0.21 0.21 0.26 0.19 0.12
X4  0.42 0.38 0.53 1.00 0.14 0.14 0.12 0.19 0.16 0.23 0.17 0.06
X5  0.29 0.19 0.22 0.14 1.00 0.54 0.66 0.63 0.71 0.65 0.60 0.55
X6  0.12 0.17 0.19 0.14 0.54 1.00 0.61 0.51 0.64 0.63 0.59 0.55
X7  0.24 0.20 0.18 0.12 0.66 0.61 1.00 0.75 0.77 0.76 0.72 0.64
X8  0.20 0.20 0.21 0.19 0.63 0.51 0.75 1.00 0.73 0.68 0.66 0.57
X9  0.22 0.20 0.21 0.16 0.71 0.64 0.77 0.73 1.00 0.77 0.71 0.64
X10 0.21 0.20 0.26 0.23 0.65 0.63 0.76 0.68 0.77 1.00 0.71 0.59
X11 0.15 0.18 0.19 0.17 0.60 0.59 0.72 0.66 0.71 0.71 1.00 0.61
X12 0.18 0.14 0.12 0.06 0.55 0.55 0.64 0.57 0.64 0.59 0.61 1.00
> 
> data(factorScaleExample2)
> plot(sapply(factorScaleExample1, var), type='l', ylim=c(0, 6), lwd=3)
> lines(1:12, sapply(factorScaleExample2, var), col='blue', lwd=3)
> 
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>