Learn R Programming

⚠️There's a newer version (2.22.7) 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

12,884

Version

2.7.2

License

Apache License (== 2.0)

Issues

Pull Requests

Stars

Forks

Maintainer

Joshua Pritikin

Last Published

January 10th, 2017

Functions in OpenMx (2.7.2)

demoOneFactor

Demonstration data for a one factor model
expm

Matrix exponential
factorScaleExample1

Example Factor Analysis Data for Scaling the Model
example1

Bivariate twin data example from Classic Mx Manual
factorExample1

Example Factor Analysis Data
imxAddDependency

Add a dependency
imxCheckMatrices

imxCheckMatrices
HS.ability.data

Holzinger and Swineford (1939) Ability data in 301 children from two schools
genericFitDependencies,MxBaseFitFunction-method

Add dependencies
factorScaleExample2

Example Factor Analysis Data for Scaling the Model
example2

Bivariate twin data example from Classic Mx Manual
imxConvertLabel

imxConvertLabel
imxConvertSubstitution

imxConvertSubstitution
imxExtractNames

imxExtractNames
imxGenSwift

imxGenSwift
imxExtractReferences

imxExtractReferences
imxGentleResize

Resize an MxMatrix while preserving entries
imxHasOpenMP

imxHasOpenMP
imxIdentifier

imxIdentifier
imxPPML

imxPPML
demoTwoFactor

Demonstration data for a two factor model
imxPPML.Test.Battery

imxPPML.Test.Battery
diag2vec

Extract Diagonal of a Matrix
imxSfClient

imxSfClient
imxReverseIdentifier

imxReverseIdentifier
imxSimpleRAMPredicate

imxSimpleRAMPredicate
imxReservedNames

imxReservedNames
dzfData

DZ female data
dzmData

DZ Male data
imxCheckVariables

imxCheckVariables
imxGenerateNamespace

imxGenerateNamespace
imxDmvnorm

A C implementation of dmvnorm
imxConDecMatrixSlots

Condense/decondense slots of an MxMatrix
imxDiff

Set difference on regular types or S4 objects
imxGetSlotDisplayNames

imxGetSlotDisplayNames
cvectorize

Vectorize By Column
imxPPML.Test.Test

imxPPML.Test.Test
imxHasConstraint

imxHasConstraint
imxReplaceMethod

imxReplaceMethod
imxPreprocessModel

imxPreprocessModel
imxConstraintRelations

imxConstraintRelations
imxHasDefinitionVariable

imxHasDefinitionVariable
imxExtractSlot

imxExtractSlot
imxConvertIdentifier

imxConvertIdentifier
imxFlattenModel

Remove heirarchical structure from model
BaseCompute-class

BaseCompute
imxHasNPSOL

imxHasNPSOL
Bollen

Bollen Data on Industrialization and Political Democracy
imxDeparse

Deparse for MxObjects
imxDefaultGetSlotDisplayNames

imxDefaultGetSlotDisplayNames
imxDependentModels

Are submodels dependence?
imxJiggle

imxJiggle
imxDetermineDefaultOptimizer

imxDetermineDefaultOptimizer
imxLocateFunction

imxLocateFunction
imxFreezeModel

Freeze model
imxReplaceSlot

imxReplaceSlot
imxOriginalMx

imxOriginalMx
imxMpiWrap

imxMpiWrap
imxReportProgress

Report backend progress
imxUntitledName

imxUntitledName
imxLocateIndex

imxLocateIndex
imxGenericModelBuilder

imxGenericModelBuilder
imxRowGradients

imxRowGradients
imxLocateLabel

imxLocateLabel
imxSymmetricMatrix

imxSymmetricMatrix
imxRobustSE

imxRobustSE
imxVariableTypes

imxVariableTypes
MxAlgebraFormula-class

MxAlgebraFormula
imxVerifyMatrix

imxVerifyMatrix
mxAlgebraFromString

Create MxAlgebra object from a string
MxCompute-class

MxCompute
eigenvec

Eigenvector/Eigenvalue Decomposition
mxComputeConfidenceInterval

Find likelihood-based confidence intervals
imxEvalByName

imxEvalByName
imxCreateMatrix

Create a matrix
imxDataTypes

Valid types of data that can be contained by MxData
dzoData

DZ opposite sex data
MxBaseNamed-class

MxBaseNamed
imxTypeName

imxTypeName
imxExtractMethod

imxExtractMethod
MxBaseObjectiveMetaData-class

MxBaseObjectiveMetaData
mxBounds

Create MxBounds Object
MxBounds-class

MxBounds Class
mxComputeReportDeriv

Report derivatives
mxComputeOnce

Compute something once
MxDirectedGraph-class

MxDirectedGraph
MxDataFrameOrMatrix-class

MxDataFrameOrMatrix
mxExpectationRAM

Create an MxExpectationRAM Object
mxDataDynamic

Create dynamic data
mxExpectationStateSpace

Create an MxExpectationStateSpace Object
imxUntitledNumber

imxUntitledNumber
imxVerifyReference

imxVerifyReference
jointdata

Joint Ordinal and continuous variables to be modeled together
mxComputeEM

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

Report expectation
mxComputeSequence

Invoke a series of compute objects in sequence
mxComputeDefault

Default compute plan
imxIndependentModels

Are submodels independent?
imxInitModel

imxInitModel
imxLog

Test thread-safe output code
imxLookupSymbolTable

imxLookupSymbolTable
imxUntitledNumberReset

imxUntitledNumberReset
mxExpectationBA81

Create a Bock & Aitkin (1981) expectation
imxUpdateModelValues

imxUpdateModelValues
mxEval

Evaluate Values in MxModel
MxExpectationGREML-class

Class "MxExpectationGREML"
MxFlatModel-class

MxFlatModel
mxFitFunctionWLS

Create MxFitFunctionWLS Object
MxMatrix-class

MxMatrix Class
mxComputeStandardError

Compute standard errors given the Hessian or inverse Hessian
mxComputeTryHard

Repeatedly attempt a compute plan until successful
mxFitFunctionR

Create MxFitFunctionR Object
MxExpectation-class

MxExpectation
mxExpectationStateSpaceContinuousTime

Create an MxExpectationStateSpace Object
mxGenerateData

Generate data based on an MxModel object
mxFitFunctionRow

Create an MxFitFunctionRow Object
mxGetExpected

Extract the component from a model's expectation
imxIsDefinitionVariable

imxIsDefinitionVariable
imxGenerateLabels

imxGenerateLabels
imxIsPath

imxIsPath
imxModelBuilder

imxModelBuilder
imxModelTypes

imxModelTypes
mxRowObjective

DEPRECATED: Create MxRowObjective Object
imxSameType

imxSameType
mxRun

Send a Model to the Optimizer
mxStandardizeRAMpaths

Standardize RAM models' path coefficients
mxThreshold

Create List of Thresholds
omxCheckNamespace

omxCheckNamespace
omxCheckIdentical

Exact Equality Testing Function
omxLocateParameters

Summarize Model Parameters
imxSeparatorChar

imxSeparatorChar
imxSparseInvert

Sparse symmetric matrix invert
imxSquareMatrix

imxSquareMatrix
latentMultipleRegExample1

Example data for multiple regression among latent variables
latentMultipleRegExample2

Example data for multiple regression among latent variables
omxRMSEA

Get the RMSEA with confidence intervals from model
omxLogical

Logical mxAlgebra() operators
MxBaseExpectation-class

MxBaseExpectation
omxSapply

On-Demand Parallel Sapply
vech2full

Inverse Half-vectorization
vechs

Strict Half-vectorization
imxVerifyName

imxVerifyName
mxAlgebraObjective

DEPRECATED: Create MxAlgebraObjective Object
imxVerifyModel

imxVerifyModel
mxAvailableOptimizers

mxAvailableOptimizers
mxComputeNothing

Compute nothing
MxCI-class

MxCI Class
mxCI

Create mxCI Object
mxComputeNumericDeriv

Numerically estimate Hessian using Richardson extrapolation
MxConstraint-class

Class "MxConstraint"
mxConstraint

Create MxConstraint Object
mxExpectationNormal

Create MxExpectationNormal Object
mxExpectationGREML

Create MxExpectationGREML Object
imxReplaceModels

Replace parts of a model
MxFitFunctionGREML-class

Class "MxFitFunctionGREML"
logm

Matrix logarithm
LongitudinalOverdispersedCounts

Longitudinal, Overdispersed Count Data
MxAlgebra-class

MxAlgebra Class
multiData1

Data for multiple regression
MxCharOrList-class

A character, list or NULL
MxCharOrNumber-class

A character or integer
mxComputeIterate

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

Optimize parameters using the Newton-Raphson algorithm
mxFIMLObjective

DEPRECATED: Create MxFIMLObjective Object
mxFactor

Fail-safe Factors
MxListOrNull-class

An optional list
mxMakeNames

mxMakeNames
mxMatrix

Create MxMatrix Object
MxModel-class

MxModel Class
mxOption

Set or Clear an Optimizer Option
MxOptionalChar-class

An optional character
mxRAMObjective

DEPRECATED: Create MxRAMObjective Object
mxRename

Rename MxModel or a Submodel
mxTryHard

Make multiple attempts to run a model
mxTypes

List Currently Available Model Types
Named-entity

Named Entities
mzmData

MZ Male example data
omxAssignFirstParameters

Assign First Available Values to Model Parameters
omxApply

On-Demand Parallel Apply
omxCheckWarning

Correct Warning Message Function
omxCheckWithinPercentError

Approximate Percent Equality Testing Function
omxMnor

Multivariate Normal Integration
omxNameAnonymousParameters

omxNameAnonymousParameters
MxFitFunction-class

MxFitFunction
mxFitFunctionAlgebra

Create MxFitFunctionAlgebra Object
mxGREMLDataHandler

Helper Function for Structuring GREML Data
MxInterval-class

MxInterval
MxOptionalCharOrNumber-class

A character, integer, or NULL
MxOptionalLogical-class

An optional logical
MxRAMMetaData-class

Meta Data for RAM
MxRAMModel-class

MxRAMModel
myRegDataRaw

Example regression data with correlated predictors
myRegData

Example regression data with correlated predictors
omxBrownie

Make Brownies in OpenMx
omxGetNPSOL

omxGetNPSOL
omxCheckCloseEnough

Approximate Equality Testing Function
omxSetParameters

Assign Model Parameters
omxDetectCores

omxDetectCores
omxSymbolTable

Internal OpenMx algebra operations
omxNormalQuantiles

omxNormalQuantiles
tr

trace
omxParallelCI

omxParallelCI
rvectorize

Vectorize By Row
mxFitFunctionGREML

Create MxFitFunctionGREML Object
mxKalmanScores

Estimate Kalman scores and error covariance matrices
MxLISRELModel-class

MxLISRELModel
MxOptionalNumeric-class

An optional numeric
MxOptionalMatrix-class

An optional matrix
mxSE

Compute standard errors in OpenMx
mxSave

Save End State to Checkpoint File
myFADataRaw

Example 500-row dataset with 12 generated variables
myGrowthKnownClassData

Data for a growth mixture model with the true class membership
MxBaseFitFunction-class

MxBaseFitFunction
mxComputeGradientDescent

Optimize parameters using a gradient descent optimizer
MxDataStatic-class

Create static data
mxDataWLS

Create MxData Object for Least Squares (WLS, DLS, ULS) Analyses
mxComputeHessianQuality

Compute the quality of the Hessian
mxMI

Estimate Modification Indices for MxModel Objects
mxFitFunctionML

Create MxFitFunctionML Object
mxFitFunctionMultigroup

Create MxFitFunctionMultigroup object
mxMLObjective

DEPRECATED: Create MxMLObjective Object
mxModel

Create MxModel Object
mxPath

Create List of Paths
MxRAMGraph-class

MxRAMGraph
mxSetDefaultOptions

Reset global options to the default
mxRestore

Restore From Checkpoint File
mzfData

MZ female example twin data
mxSimplify2Array

Like simplify2array but works with vectors of different lengths
mxRObjective

DEPRECATED: Create MxRObjective Object
myTwinData

Twin data on weight and height
mxVersion

Returns Current Version String
myGrowthMixtureData

Data for a growth mixture model
myAutoregressiveData

Example data with autoregressively related columns
myLongitudinalData

Data for a linear latent growth curve model
nuclear_twin_design_data

Twin data from a nuclear family design
omxConstrainMLThresholds

omxConstrainMLThresholds
numHess1

numeric Hessian data 1
omxManifestModelByParameterJacobian

Estimate the Jacobian of manifest model with respect to parameters
omxDefaultComputePlan

Construct default compute plan
omxMatrixOperations

MxMatrix operations
omxAllInt

All Interval Multivariate Normal Integration
numHess2

numeric Hessian data 2
omxCheckSetEquals

Set Equality Testing Function
omxCheckTrue

Boolean Equality Testing Function
omxGetParameters

Fetch Model Parameters
omxQuotes

omxQuotes
omxGetRAMDepth

omxGetRAMDepth
vech

Half-vectorization
vec2diag

Create Diagonal Matrix From Vector
omxRAMtoML

omxRAMtoML
vechs2full

Inverse Strict Half-vectorization
omxCheckEquals

Equality Testing Function
omxLapply

On-Demand Parallel Lapply
omxGraphviz

Show RAM Model in Graphviz Format
omxCheckError

Correct Error Message Function
twin_NA_dot

Twin data on weight and height
twinData

Australian twin sample biometric data.
omxSaturatedModel

Create Reference (Saturated and Independence) Models
omxSelectRowsAndCols

Filter rows and columns from an mxMatrix
OpenMx

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

Data for ordinal twin model