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.9

License

Apache License (== 2.0)

Issues

Pull Requests

Stars

Forks

Maintainer

Joshua Pritikin

Last Published

July 28th, 2016

Functions in OpenMx (2.6.9)

demoTwoFactor

Demonstration data for a two factor model
eigenvec

Eigenvector/Eigenvalue Decomposition
factorExample1

Example Factor Analysis Data
expm

Matrix exponential
genericFitDependencies,MxBaseFitFunction-method

Add dependencies
factorScaleExample2

Example Factor Analysis Data for Scaling the Model
example1

Bivariate twin data example from Classic Mx Manual
HS.ability.data

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

imxCheckMatrices
example2

Bivariate twin data example from Classic Mx Manual
factorScaleExample1

Example Factor Analysis Data for Scaling the Model
imxAddDependency

Add a dependency
imxDeparse

Deparse for MxObjects
imxCheckVariables

imxCheckVariables
imxConDecMatrixSlots

Condense/decondense slots of an MxMatrix
imxExtractMethod

imxExtractMethod
imxEvalByName

imxEvalByName
imxDefaultGetSlotDisplayNames

imxDefaultGetSlotDisplayNames
imxHasConstraint

imxHasConstraint
imxGetSlotDisplayNames

imxGetSlotDisplayNames
imxDiff

Set difference on regular types or S4 objects
imxDmvnorm

A C implementation of dmvnorm
imxCreateMatrix

Create a matrix
imxLocateFunction

imxLocateFunction
imxJiggle

imxJiggle
imxDataTypes

Valid types of data that can be contained by MxData
imxFlattenModel

Remove heirarchical structure from model
imxExtractSlot

imxExtractSlot
imxFreezeModel

Freeze model
imxGenerateLabels

imxGenerateLabels
imxConstraintRelations

imxConstraintRelations
imxConvertIdentifier

imxConvertIdentifier
imxIsPath

imxIsPath
imxIsDefinitionVariable

imxIsDefinitionVariable
imxGentleResize

Resize an MxMatrix while preserving entries
imxGenSwift

imxGenSwift
imxHasOpenMP

imxHasOpenMP
imxIdentifier

imxIdentifier
imxMpiWrap

imxMpiWrap
imxLookupSymbolTable

imxLookupSymbolTable
imxLog

Test thread-safe output code
imxOriginalMx

imxOriginalMx
imxReplaceMethod

imxReplaceMethod
imxUntitledName

imxUntitledName
imxReplaceModels

Replace parts of a model
imxTypeName

imxTypeName
imxConvertLabel

imxConvertLabel
imxExtractReferences

imxExtractReferences
imxGenerateNamespace

imxGenerateNamespace
imxExtractNames

imxExtractNames
imxConvertSubstitution

imxConvertSubstitution
imxGenericModelBuilder

imxGenericModelBuilder
imxLocateLabel

imxLocateLabel
imxLocateIndex

imxLocateIndex
imxPPML

imxPPML
imxPPML.Test.Battery

imxPPML.Test.Battery
cvectorize

Vectorize By Column
mxAvailableOptimizers

mxAvailableOptimizers
demoOneFactor

Demonstration data for a one factor model
MxBaseExpectation-class

MxBaseExpectation
mxCI

Create mxCI Object
MxCompute-class

MxCompute
mxComputeOnce

Compute something once
mxComputeNumericDeriv

Numerically estimate Hessian using Richardson extrapolation
mxExpectationBA81

Create a Bock & Aitkin (1981) expectation
MxExpectationGREML-class

Class "MxExpectationGREML"
BaseCompute-class

BaseCompute
imxSquareMatrix

imxSquareMatrix
Bollen

Bollen Data on Industrialization and Political Democracy
imxSymmetricMatrix

imxSymmetricMatrix
jointdata

Joint Ordinal and continuous variables to be modeled together
latentMultipleRegExample1

Example data for multiple regression among latent variables
mxAlgebraObjective

DEPRECATED: Create MxAlgebraObjective Object
mxAlgebraFromString

Create MxAlgebra object from a string
mxComputeReportDeriv

Report derivatives
mxComputeGradientDescent

Optimize parameters using a gradient descent optimizer
mxComputeEM

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

Report expectation
mxExpectationNormal

Create MxExpectationNormal Object
mxExpectationGREML

Create MxExpectationGREML Object
mxKalmanScores

Estimate Kalman scores and error covariance matrices
MxLISRELModel-class

MxLISRELModel
mxRAMObjective

DEPRECATED: Create MxRAMObjective Object
mxRename

Rename MxModel or a Submodel
mxModel

Create MxModel Object
MxModel-class

MxModel Class
myAutoregressiveData

Example data with autoregressively related columns
numHess1

numeric Hessian data 1
myFADataRaw

Example 500-row dataset with 12 generated variables
numHess2

numeric Hessian data 2
omxGetParameters

Fetch Model Parameters
omxGetRAMDepth

omxGetRAMDepth
omxNormalQuantiles

omxNormalQuantiles
omxRMSEA

Get the RMSEA with confidence intervals from model
omxParallelCI

omxParallelCI
omxSapply

On-Demand Parallel Sapply
imxDetermineDefaultOptimizer

imxDetermineDefaultOptimizer
imxDependentModels

Are submodels dependence?
diag2vec

Extract Diagonal of a Matrix
imxHasDefinitionVariable

imxHasDefinitionVariable
imxHasNPSOL

imxHasNPSOL
imxInitModel

imxInitModel
imxIndependentModels

Are submodels independent?
imxModelBuilder

imxModelBuilder
imxSeparatorChar

imxSeparatorChar
imxModelTypes

imxModelTypes
imxVerifyMatrix

imxVerifyMatrix
imxReservedNames

imxReservedNames
dzoData

DZ opposite sex data
imxReplaceSlot

imxReplaceSlot
imxVerifyModel

imxVerifyModel
MxCharOrNumber-class

A character or integer
MxCI-class

MxCI Class
MxConstraint-class

MxConstraint Class
imxUpdateModelValues

imxUpdateModelValues
mxConstraint

Create MxConstraint Object
imxSfClient

imxSfClient
imxVariableTypes

imxVariableTypes
latentMultipleRegExample2

Example data for multiple regression among latent variables
MxAlgebra-class

MxAlgebra Class
logm

Matrix logarithm
MxAlgebraFormula-class

MxAlgebraFormula
mxBounds

Create MxBounds Object
MxCharOrList-class

A character, list or NULL
vechs2full

Inverse Strict Half-vectorization
mxComputeSequence

Invoke a series of compute objects in sequence
MxFitFunction-class

MxFitFunction
mxFitFunctionAlgebra

Create MxFitFunctionAlgebra Object
mxGenerateData

Generate data based on an MxModel object
mxGetExpected

Extract the component from a model's expectation
MxListOrNull-class

An optional list
mxMakeNames

mxMakeNames
mxSave

Save End State to Checkpoint File
mxSetDefaultOptions

Reset global options to the default
MxOptionalCharOrNumber-class

A character, integer, or NULL
dzfData

DZ female data
dzmData

DZ Male data
imxPreprocessModel

imxPreprocessModel
MxOptionalLogical-class

An optional logical
imxPPML.Test.Test

imxPPML.Test.Test
imxRowGradients

imxRowGradients
imxSparseInvert

Sparse symmetric matrix invert
imxSimpleRAMPredicate

imxSimpleRAMPredicate
imxSameType

imxSameType
mxComputeStandardError

Compute standard errors given the Hessian or inverse Hessian
imxVerifyReference

imxVerifyReference
imxVerifyName

imxVerifyName
MxDataStatic-class

Create static data
mxDataWLS

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

Create an MxExpectationStateSpace Object
MxExpectation-class

MxExpectation
MxFlatModel-class

MxFlatModel
mxFitFunctionWLS

Create MxFitFunctionWLS Object
mxMI

Estimate Modification Indices for MxModel Objects
MxBaseNamed-class

MxBaseNamed
MxBaseFitFunction-class

MxBaseFitFunction
mxRestore

Restore From Checkpoint File
mxComputeHessianQuality

Compute the quality of the Hessian
mxMLObjective

DEPRECATED: Create MxMLObjective Object
mxComputeIterate

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

Create dynamic data
mxFitFunctionGREML

Create MxFitFunctionGREML Object
MxDataFrameOrMatrix-class

MxDataFrameOrMatrix
MxFitFunctionGREML-class

Class "MxFitFunctionGREML"
mxTypes

List Currently Available Model Types
MxOptionalChar-class

An optional character
mxOption

Set or Clear an Optimizer Option
mxVersion

Returns Current Version String
Named-entity

Named Entities
nuclear_twin_design_data

Twin data from a nuclear family design
omxAllInt

All Interval Multivariate Normal Integration
omxApply

On-Demand Parallel Apply
omxLapply

On-Demand Parallel Lapply
omxGraphviz

Show RAM Model in Graphviz Format
omxLocateParameters

Summarize Model Parameters
omxLogical

Logical mxAlgebra() operators
myLongitudinalData

Data for a linear latent growth curve model
mxRObjective

DEPRECATED: Create MxRObjective Object
myRegData

Example regression data with correlated predictors
omxCheckError

Correct Error Message Function
omxCheckIdentical

Exact Equality Testing Function
omxCheckTrue

Boolean Equality Testing Function
omxNameAnonymousParameters

omxNameAnonymousParameters
omxMnor

Multivariate Normal Integration
omxCheckWarning

Correct Warning Message Function
imxReverseIdentifier

imxReverseIdentifier
omxSaturatedModel

Create Reference (Saturated and Independence) Models
imxRobustSE

imxRobustSE
imxUntitledNumber

imxUntitledNumber
imxUntitledNumberReset

imxUntitledNumberReset
LongitudinalOverdispersedCounts

Longitudinal, Overdispersed Count Data
mxComputeDefault

Default compute plan
mxComputeConfidenceInterval

Find likelihood-based confidence intervals
MxBounds-class

MxBounds Class
MxBaseObjectiveMetaData-class

MxBaseObjectiveMetaData
multiData1

Data for multiple regression
mxRowObjective

DEPRECATED: Create MxRowObjective Object
mxRun

Send a Model to the Optimizer
omxCheckNamespace

omxCheckNamespace
myGrowthKnownClassData

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

Data for a growth mixture model
twin_NA_dot

Twin data on weight and height
omxManifestModelByParameterJacobian

Estimate the Jacobian of manifest model with respect to parameters
omxCheckWithinPercentError

Approximate Percent Equality Testing Function
omxCheckSetEquals

Set Equality Testing Function
omxMatrixOperations

MxMatrix operations
omxConstrainMLThresholds

omxConstrainMLThresholds
mxFIMLObjective

DEPRECATED: Create MxFIMLObjective Object
mxFactor

Fail-safe Factors
twinData

Australian twin sample biometric data.
mxFitFunctionML

Create MxFitFunctionML Object
mxFitFunctionMultigroup

Create MxFitFunctionMultigroup object
MxMatrix-class

MxMatrix Class
MxOptionalMatrix-class

An optional matrix
MxOptionalNumeric-class

An optional numeric
mxMatrix

Create MxMatrix Object
omxSetParameters

Assign Model Parameters
mxThreshold

Create List of Thresholds
vec2diag

Create Diagonal Matrix From Vector
mxTryHard

Make multiple attempts to run a model
omxSymbolTable

Internal OpenMx algebra operations
vech

Half-vectorization
omxAssignFirstParameters

Assign First Available Values to Model Parameters
myTwinData

Twin data on weight and height
omxBrownie

Make Brownies in OpenMx
myRegDataRaw

Example regression data with correlated predictors
omxQuotes

omxQuotes
OpenMx

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

omxRAMtoML
ordinalTwinData

Data for ordinal twin model
omxSelectRowsAndCols

Filter rows and columns from an mxMatrix
vech2full

Inverse Half-vectorization
mxComputeNewtonRaphson

Optimize parameters using the Newton-Raphson algorithm
vechs

Strict Half-vectorization
MxDirectedGraph-class

MxDirectedGraph
mxComputeNothing

Compute nothing
mxEval

Evaluate Values in MxModel
mxFitFunctionR

Create MxFitFunctionR Object
mxExpectationStateSpace

Create an MxExpectationStateSpace Object
mxExpectationRAM

Create an MxExpectationRAM Object
mxFitFunctionRow

Create an MxFitFunctionRow Object
mxGREMLDataHandler

Helper Function for Structuring GREML Data
MxInterval-class

MxInterval
mxPath

Create List of Paths
MxRAMMetaData-class

Meta Data for RAM
MxRAMModel-class

MxRAMModel
MxRAMGraph-class

MxRAMGraph
mxStandardizeRAMpaths

Standardize RAM models' path coefficients
mzfData

MZ female example twin data
mxSimplify2Array

Like simplify2array but works with vectors of different lengths
mzmData

MZ Male example data
omxCheckCloseEnough

Approximate Equality Testing Function
omxGetNPSOL

omxGetNPSOL
omxCheckEquals

Equality Testing Function
tr

trace
omxDetectCores

omxDetectCores
rvectorize

Vectorize By Row