Learn R Programming

⚠️There's a newer version (2.21.13) of this package.Take me there.

OpenMx

A Structural Equation Modeling package encouraging users to treat model specifications as something able to be generated and manipulated programmatically.

Example models which OpenMx can fit include confirmatory factor, multiple group, mixture distribution, categorical threshold, modern test theory, differential equations, state space, and many others.

Models may be specified as RAM or LISREL mxPaths, or directly in matrix algebra.

Fit functions include FIML, ML and WLS.

We have an active development branch. on github.

The stable branch can be considered our current alpha release.

An easy way to install the stable branch is to use devtools:

require(devtools)
install_github("OpenMx/OpenMx", ref="stable")

Developers commit to the master branch and this is accessible to more intrepid users.

Commits should be tested using make test, which runs all the tests in models/passing, and also make cran-check. buildbot updates the stable branch only when all models/passing and models/nightly tests pass along with make cran-check.

Copy Link

Version

Install

install.packages('OpenMx')

Monthly Downloads

24,178

Version

2.6.7

License

Apache License (== 2.0)

Issues

Pull Requests

Stars

Forks

Maintainer

Joshua Pritikin

Last Published

June 22nd, 2016

Functions in OpenMx (2.6.7)

BaseCompute-class

BaseCompute
cvectorize

Vectorize By Column
eigenvec

Eigenvector/Eigenvalue Decomposition
dzoData

DZ opposite sex data
demoTwoFactor

Demonstration data for a two factor model
diag2vec

Extract Diagonal of a Matrix
demoOneFactor

Demonstration data for a one factor model
dzfData

DZ female data
Bollen

Bollen Data on Industrialization and Political Democracy
dzmData

DZ Male data
expm

Matrix exponential
factorExample1

Example Factor Analysis Data
example1

Bivariate twin data example from Classic Mx Manual
imxAddDependency

Add a dependency
imxCheckMatrices

imxCheckMatrices
genericFitDependencies,MxBaseFitFunction-method

Add dependencies
example2

Bivariate twin data example from Classic Mx Manual
factorScaleExample2

Example Factor Analysis Data for Scaling the Model
factorScaleExample1

Example Factor Analysis Data for Scaling the Model
HS.ability.data

Holzinger and Swineford (1939) Ability data in 301 children from two schools
imxExtractMethod

imxExtractMethod
imxCreateMatrix

Create a matrix
imxEvalByName

imxEvalByName
imxDataTypes

Valid types of data that can be contained by MxData
imxGenSwift

imxGenSwift
imxGentleResize

Resize an MxMatrix while preserving entries
imxIsDefinitionVariable

imxIsDefinitionVariable
imxIsPath

imxIsPath
imxLog

Test thread-safe output code
imxLookupSymbolTable

imxLookupSymbolTable
imxCheckVariables

imxCheckVariables
imxExtractReferences

imxExtractReferences
imxExtractNames

imxExtractNames
imxConDecMatrixSlots

Condense/decondense slots of an MxMatrix
imxUntitledName

imxUntitledName
imxRowGradients

imxRowGradients
imxSameType

imxSameType
imxTypeName

imxTypeName
jointdata

Joint Ordinal and continuous variables to be modeled together
latentMultipleRegExample1

Example data for multiple regression among latent variables
MxAlgebraFormula-class

MxAlgebraFormula
MxCI-class

MxCI Class
mxComputeIterate

Repeatedly invoke a series of compute objects until change is less than tolerance
mxAlgebraFromString

Create MxAlgebra object from a string
mxCheckIdentification

Check that a model is locally identified
mxComputeNewtonRaphson

Optimize parameters using the Newton-Raphson algorithm
MxDataFrameOrMatrix-class

MxDataFrameOrMatrix
MxDataStatic-class

Create static data
MxExpectationGREML-class

Class "MxExpectationGREML"
imxConvertLabel

imxConvertLabel
imxDiff

Set difference on regular types or S4 objects
imxConvertSubstitution

imxConvertSubstitution
imxDmvnorm

A C implementation of dmvnorm
imxGetSlotDisplayNames

imxGetSlotDisplayNames
imxHasConstraint

imxHasConstraint
imxHasOpenMP

imxHasOpenMP
imxIdentifier

imxIdentifier
imxModelBuilder

imxModelBuilder
imxModelTypes

imxModelTypes
imxSeparatorChar

imxSeparatorChar
imxSfClient

imxSfClient
logm

Matrix logarithm
imxSparseInvert

Sparse symmetric matrix invert
imxSimpleRAMPredicate

imxSimpleRAMPredicate
MxBaseNamed-class

MxBaseNamed
latentMultipleRegExample2

Example data for multiple regression among latent variables
imxFlattenModel

Remove heirarchical structure from model
imxExtractSlot

imxExtractSlot
imxGenerateNamespace

imxGenerateNamespace
imxGenericModelBuilder

imxGenericModelBuilder
imxIndependentModels

Are submodels independent?
imxOriginalMx

imxOriginalMx
imxSymmetricMatrix

imxSymmetricMatrix
imxMpiWrap

imxMpiWrap
imxSquareMatrix

imxSquareMatrix
imxInitModel

imxInitModel
imxVerifyMatrix

imxVerifyMatrix
imxVerifyModel

imxVerifyModel
mxAlgebraObjective

DEPRECATED: Create MxAlgebraObjective Object
mxAvailableOptimizers

mxAvailableOptimizers
mxCI

Create mxCI Object
mxDataDynamic

Create dynamic data
mxCompare

Assign Model Parameters
mxData

Create MxData Object
MxFitFunctionGREML-class

Class "MxFitFunctionGREML"
mxFitFunctionAlgebra

Create MxFitFunctionAlgebra Object
imxConstraintRelations

imxConstraintRelations
imxConvertIdentifier

imxConvertIdentifier
imxHasDefinitionVariable

imxHasDefinitionVariable
imxHasNPSOL

imxHasNPSOL
imxLocateFunction

imxLocateFunction
imxJiggle

imxJiggle
imxPreprocessModel

imxPreprocessModel
imxPPML.Test.Test

imxPPML.Test.Test
imxRobustSE

imxRobustSE
imxReverseIdentifier

imxReverseIdentifier
MxBaseObjectiveMetaData-class

MxBaseObjectiveMetaData
mxComputeDefault

Default compute plan
mxComputeConfidenceInterval

Find likelihood-based confidence intervals
MxCompute-class

MxCompute
mxComputeStandardError

Compute standard errors given the Hessian or inverse Hessian
MxConstraint-class

MxConstraint Class
mxComputeEM

Fit a model using DLR's (1977) Expectation-Maximization (EM) algorithm
mxExpectationStateSpace

Create an MxExpectationStateSpace Object
mxGetExpected

Extract the component from a model's expectation
mxExpectationStateSpaceContinuousTime

Create an MxExpectationStateSpace Object
MxListOrNull-class

An optional list
MxLISRELModel-class

MxLISRELModel
MxOptionalMatrix-class

An optional matrix
MxOptionalNumeric-class

An optional numeric
mxRowObjective

DEPRECATED: Create MxRowObjective Object
mxRun

Send a Model to the Optimizer
omxAssignFirstParameters

Assign First Available Values to Model Parameters
MxModel-class

MxModel Class
mxGREMLDataHandler

Helper Function for Structuring GREML Data
mxModel

Create MxModel Object
mxRestore

Restore From Checkpoint File
mxRObjective

DEPRECATED: Create MxRObjective Object
mxSimplify2Array

Like simplify2array but works with vectors of different lengths
mxStandardizeRAMpaths

Standardize RAM models' path coefficients
MxCharOrList-class

A character, list or NULL
imxUpdateModelValues

imxUpdateModelValues
MxCharOrNumber-class

A character or integer
imxVariableTypes

imxVariableTypes
mxComputeOnce

Compute something once
mxComputeReportDeriv

Report derivatives
mxConstraint

Create MxConstraint Object
MxData-class

MxData Class
mxEval

Evaluate Values in MxModel
mxExpectationBA81

Create a Bock & Aitkin (1981) expectation
imxReplaceSlot

imxReplaceSlot
imxReservedNames

imxReservedNames
imxUntitledNumberReset

imxUntitledNumberReset
imxUntitledNumber

imxUntitledNumber
imxVerifyName

imxVerifyName
imxVerifyReference

imxVerifyReference
MxAlgebra-class

MxAlgebra Class
mxAlgebra

Create MxAlgebra Object
MxBounds-class

MxBounds Class
mxBounds

Create MxBounds Object
omxCheckSetEquals

Set Equality Testing Function
omxLocateParameters

Summarize Model Parameters
omxBrownie

Make Brownies in OpenMx
omxCheckNamespace

omxCheckNamespace
omxLogical

Logical mxAlgebra() operators
twinData

Australian twin sample biometric data.
vec2diag

Create Diagonal Matrix From Vector
MxOptionalCharOrNumber-class

A character, integer, or NULL
mxFitFunctionMultigroup

Create MxFitFunctionMultigroup object
mxFitFunctionR

Create MxFitFunctionR Object
MxRAMModel-class

MxRAMModel
MxRAMMetaData-class

Meta Data for RAM
MxOptionalLogical-class

An optional logical
mxSave

Save End State to Checkpoint File
mxSetDefaultOptions

Reset global options to the default
myLongitudinalData

Data for a linear latent growth curve model
myRegData

Example regression data with correlated predictors
imxDefaultGetSlotDisplayNames

imxDefaultGetSlotDisplayNames
imxDeparse

Deparse for MxObjects
imxDetermineDefaultOptimizer

imxDetermineDefaultOptimizer
imxDependentModels

Are submodels dependence?
imxFreezeModel

Freeze model
imxLocateIndex

imxLocateIndex
imxGenerateLabels

imxGenerateLabels
imxLocateLabel

imxLocateLabel
imxPPML

imxPPML
imxPPML.Test.Battery

imxPPML.Test.Battery
mzfData

MZ female example twin data
omxAllInt

All Interval Multivariate Normal Integration
mzmData

MZ Male example data
omxApply

On-Demand Parallel Apply
omxDetectCores

omxDetectCores
omxMnor

Multivariate Normal Integration
omxGetNPSOL

omxGetNPSOL
omxNameAnonymousParameters

omxNameAnonymousParameters
omxRMSEA

Get the RMSEA with confidence intervals from model
omxCheckIdentical

Exact Equality Testing Function
omxCheckError

Correct Error Message Function
omxManifestModelByParameterJacobian

Estimate the Jacobian of manifest model with respect to parameters
omxSaturatedModel

Create Reference (Saturated and Independence) Models
omxMatrixOperations

MxMatrix operations
omxSelectRowsAndCols

Filter rows and columns from an mxMatrix
mxExpectationGREML

Create MxExpectationGREML Object
mxFitFunctionGREML

Create MxFitFunctionGREML Object
mxFitFunctionML

Create MxFitFunctionML Object
mxMLObjective

DEPRECATED: Create MxMLObjective Object
mxMI

Estimate Modification Indices for MxModel Objects
mxRename

Rename MxModel or a Submodel
mxRAMObjective

DEPRECATED: Create MxRAMObjective Object
mxFitFunctionRow

Create an MxFitFunctionRow Object
mxFitFunctionWLS

Create MxFitFunctionWLS Object
tr

trace
omxSapply

On-Demand Parallel Sapply
myGrowthKnownClassData

Data for a growth mixture model with the true class membership
imxReplaceModels

Replace parts of a model
twin_NA_dot

Twin data on weight and height
MxBaseExpectation-class

MxBaseExpectation
imxReplaceMethod

imxReplaceMethod
LongitudinalOverdispersedCounts

Longitudinal, Overdispersed Count Data
MxBaseFitFunction-class

MxBaseFitFunction
mxComputeGradientDescent

Optimize parameters using a gradient descent optimizer
multiData1

Data for multiple regression
mxComputeHessianQuality

Compute the quality of the Hessian
mxExpectationNormal

Create MxExpectationNormal Object
mxExpectationRAM

Create an MxExpectationRAM Object
myGrowthMixtureData

Data for a growth mixture model
omxCheckCloseEnough

Approximate Equality Testing Function
omxCheckWarning

Correct Warning Message Function
omxCheckTrue

Boolean Equality Testing Function
omxCheckEquals

Equality Testing Function
omxQuotes

omxQuotes
omxGetRAMDepth

omxGetRAMDepth
omxGetParameters

Fetch Model Parameters
omxRAMtoML

omxRAMtoML
vech

Half-vectorization
vech2full

Inverse Half-vectorization
mxComputeReportExpectation

Report expectation
mxComputeNumericDeriv

Numerically estimate Hessian using Richardson extrapolation
mxComputeSequence

Invoke a series of compute objects in sequence
mxComputeNothing

Compute nothing
mxDataWLS

Create MxData Object for Least Squares (WLS, DLS, ULS) Analyses
MxDirectedGraph-class

MxDirectedGraph
MxFlatModel-class

MxFlatModel
mxFactor

Fail-safe Factors
MxExpectation-class

MxExpectation
mxGenerateData

Generate data based on an MxModel object
mxOption

Set or Clear an Optimizer Option
mxTypes

List Currently Available Model Types
MxOptionalChar-class

An optional character
mxVersion

Returns Current Version String
myFADataRaw

Example 500-row dataset with 12 generated variables
myAutoregressiveData

Example data with autoregressively related columns
Named-entity

Named Entities
omxNormalQuantiles

omxNormalQuantiles
nuclear_twin_design_data

Twin data from a nuclear family design
omxParallelCI

omxParallelCI
mxFIMLObjective

DEPRECATED: Create MxFIMLObjective Object
MxFitFunction-class

MxFitFunction
MxInterval-class

MxInterval
mxKalmanScores

Estimate Kalman scores and error covariance matrices
mxPath

Create List of Paths
mxMatrix

Create MxMatrix Object
mxMakeNames

mxMakeNames
MxRAMGraph-class

MxRAMGraph
mxThreshold

Create List of Thresholds
mxTryHard

Make multiple attempts to run a model
myRegDataRaw

Example regression data with correlated predictors
myTwinData

Twin data on weight and height
numHess1

numeric Hessian data 1
numHess2

numeric Hessian data 2
omxGraphviz

Show RAM Model in Graphviz Format
omxCheckWithinPercentError

Approximate Percent Equality Testing Function
omxLapply

On-Demand Parallel Lapply
omxSetParameters

Assign Model Parameters
omxConstrainMLThresholds

omxConstrainMLThresholds
omxSymbolTable

Internal OpenMx algebra operations
OpenMx

OpenMx: An package for Structural Equation Modeling and Matrix Algebra Optimization
ordinalTwinData

Data for ordinal twin model
vechs

Strict Half-vectorization
vechs2full

Inverse Strict Half-vectorization
rvectorize

Vectorize By Row
summary.MxModel

Model Summary