Learn R Programming

OpenMx (version 2.3.1)

myGrowthKnownClassData: Data for a growth mixture model with the true class membership

Description

Data set used in some of OpenMx's examples.

Usage

data("myGrowthKnownClassData")

Arguments

source

Simulated.

Details

The same as myGrowthMixtureData, but with the class membership variable.

References

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

Examples

Run this code
data(myGrowthKnownClassData)

#plot the observed trajectories
# blue lines are class 1, green lines are class 2
colSel <-c('blue', 'green')[myGrowthKnownClassData$c]
matplot(t(myGrowthKnownClassData[,-6]), type='l', lty=1, col=colSel)

Run the code above in your browser using DataLab