Learn R Programming

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

33,040

Version

2.7.4

License

Apache License (== 2.0)

Issues

Pull Requests

Stars

Forks

Maintainer

Joshua Pritikin

Last Published

January 17th, 2017

Functions in OpenMx (2.7.4)

dzmData

DZ Male data
genericFitDependencies,MxBaseFitFunction-method

Add dependencies
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
example1

Bivariate twin data example from Classic Mx Manual
imxCheckMatrices

imxCheckMatrices
imxAddDependency

Add a dependency
expm

Matrix exponential
factorExample1

Example Factor Analysis Data
imxCreateMatrix

Create a matrix
imxDataTypes

Valid types of data that can be contained by MxData
imxGenerateNamespace

imxGenerateNamespace
imxGenericModelBuilder

imxGenericModelBuilder
imxExtractReferences

imxExtractReferences
imxExtractNames

imxExtractNames
imxConDecMatrixSlots

Condense/decondense slots of an MxMatrix
imxCheckVariables

imxCheckVariables
imxGenSwift

imxGenSwift
imxGentleResize

Resize an MxMatrix while preserving entries
imxJiggle

imxJiggle
imxLocateFunction

imxLocateFunction
imxMpiWrap

imxMpiWrap
imxReplaceMethod

imxReplaceMethod
eigenvec

Eigenvector/Eigenvalue Decomposition
imxOriginalMx

imxOriginalMx
imxExtractSlot

imxExtractSlot
imxConvertLabel

imxConvertLabel
imxConvertSubstitution

imxConvertSubstitution
dzoData

DZ opposite sex data
imxLocateIndex

imxLocateIndex
imxFlattenModel

Remove heirarchical structure from model
imxPPML

imxPPML
imxLocateLabel

imxLocateLabel
imxSquareMatrix

imxSquareMatrix
imxSparseInvert

Sparse symmetric matrix invert
imxPPML.Test.Battery

imxPPML.Test.Battery
MxAlgebraFormula-class

MxAlgebraFormula
imxHasOpenMP

imxHasOpenMP
imxIdentifier

imxIdentifier
imxRowGradients

imxRowGradients
imxRobustSE

imxRobustSE
imxUntitledNumberReset

imxUntitledNumberReset
imxVerifyReference

imxVerifyReference
imxUpdateModelValues

imxUpdateModelValues
jointdata

Joint Ordinal and continuous variables to be modeled together
MxCompute-class

MxCompute
multiData1

Data for multiple regression
MxAlgebra-class

MxAlgebra Class
mxComputeConfidenceInterval

Find likelihood-based confidence intervals
mxComputeNothing

Compute nothing
mxComputeNumericDeriv

Numerically estimate Hessian using Richardson extrapolation
mxExpectationRAM

Create an MxExpectationRAM Object
imxDependentModels

Are submodels dependence?
imxDefaultGetSlotDisplayNames

imxDefaultGetSlotDisplayNames
imxDeparse

Deparse for MxObjects
diag2vec

Extract Diagonal of a Matrix
demoTwoFactor

Demonstration data for a two factor model
imxDetermineDefaultOptimizer

imxDetermineDefaultOptimizer
imxFreezeModel

Freeze model
imxGenerateLabels

imxGenerateLabels
imxLog

Test thread-safe output code
imxConstraintRelations

imxConstraintRelations
imxLookupSymbolTable

imxLookupSymbolTable
dzfData

DZ female data
imxEvalByName

imxEvalByName
imxExtractMethod

imxExtractMethod
imxConvertIdentifier

imxConvertIdentifier
imxGetSlotDisplayNames

imxGetSlotDisplayNames
imxHasConstraint

imxHasConstraint
mxAlgebraFromString

Create MxAlgebra object from a string
MxCharOrList-class

A character, list or NULL
MxDataStatic-class

Create static data
mxDataWLS

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

A character or integer
mxExpectationStateSpaceContinuousTime

Create an MxExpectationStateSpace Object
MxExpectation-class

MxExpectation
mxKalmanScores

Estimate Kalman scores and error covariance matrices
MxFlatModel-class

MxFlatModel
mxFitFunctionWLS

Create MxFitFunctionWLS Object
mxMI

Estimate Modification Indices for MxModel Objects
MxLISRELModel-class

MxLISRELModel
mxMLObjective

DEPRECATED: Create MxMLObjective Object
mxSE

Compute standard errors in OpenMx
mxRename

Rename MxModel or a Submodel
mxRestore

Restore From Checkpoint File
mxSetDefaultOptions

Reset global options to the default
myRegDataRaw

Example regression data with correlated predictors
myTwinData

Twin data on weight and height
Named-entity

Named Entities
imxSameType

imxSameType
imxSeparatorChar

imxSeparatorChar
imxTypeName

imxTypeName
logm

Matrix logarithm
imxSymmetricMatrix

imxSymmetricMatrix
demoOneFactor

Demonstration data for a one factor model
LongitudinalOverdispersedCounts

Longitudinal, Overdispersed Count Data
cvectorize

Vectorize By Column
imxReplaceModels

Replace parts of a model
imxVerifyModel

imxVerifyModel
imxVerifyName

imxVerifyName
MxBaseExpectation-class

MxBaseExpectation
MxBaseNamed-class

MxBaseNamed
mxComputeReportDeriv

Report derivatives
mxComputeOnce

Compute something once
mxDataDynamic

Create dynamic data
MxBaseFitFunction-class

MxBaseFitFunction
MxDataFrameOrMatrix-class

MxDataFrameOrMatrix
nuclear_twin_design_data

Twin data from a nuclear family design
omxCheckError

Correct Error Message Function
omxCheckIdentical

Exact Equality Testing Function
omxGetNPSOL

omxGetNPSOL
omxGetParameters

Fetch Model Parameters
omxParallelCI

omxParallelCI
omxNameAnonymousParameters

omxNameAnonymousParameters
mxExpectationBA81

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

Class "MxExpectationGREML"
MxFitFunctionGREML-class

Class "MxFitFunctionGREML"
mxFitFunctionGREML

Create MxFitFunctionGREML Object
mxGenerateData

Generate data based on an MxModel object
mxGetExpected

Extract the component from a model's expectation
mxExpectationStateSpace

Create an MxExpectationStateSpace Object
mxFitFunctionRow

Create an MxFitFunctionRow Object
mxFitFunctionR

Create MxFitFunctionR Object
MxMatrix-class

MxMatrix Class
mxMatrix

Create MxMatrix Object
mxRObjective

DEPRECATED: Create MxRObjective Object
mxRowObjective

DEPRECATED: Create MxRowObjective Object
rvectorize

Vectorize By Row
tr

trace
mxModel

Create MxModel Object
MxModel-class

MxModel Class
MxRAMMetaData-class

Meta Data for RAM
MxRAMGraph-class

MxRAMGraph
mxRun

Send a Model to the Optimizer
imxInitModel

imxInitModel
imxIndependentModels

Are submodels independent?
mxSave

Save End State to Checkpoint File
imxModelBuilder

imxModelBuilder
imxModelTypes

imxModelTypes
imxReservedNames

imxReservedNames
imxUntitledNumber

imxUntitledNumber
imxReverseIdentifier

imxReverseIdentifier
imxUntitledName

imxUntitledName
imxVariableTypes

imxVariableTypes
MxCI-class

MxCI Class
imxVerifyMatrix

imxVerifyMatrix
mxCI

Create mxCI Object
mxComputeIterate

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

Optimize parameters using the Newton-Raphson algorithm
omxAssignFirstParameters

Assign First Available Values to Model Parameters
myRegData

Example regression data with correlated predictors
myLongitudinalData

Data for a linear latent growth curve model
omxBrownie

Make Brownies in OpenMx
omxLogical

Logical mxAlgebra() operators
omxCheckSetEquals

Set Equality Testing Function
omxCheckNamespace

omxCheckNamespace
omxQuotes

omxQuotes
omxManifestModelByParameterJacobian

Estimate the Jacobian of manifest model with respect to parameters
omxRAMtoML

omxRAMtoML
twin_NA_dot

Twin data on weight and height
twinData

Australian twin sample biometric data.
MxFitFunction-class

MxFitFunction
MxDirectedGraph-class

MxDirectedGraph
mxEval

Evaluate Values in MxModel
mxGREMLDataHandler

Helper Function for Structuring GREML Data
mxFitFunctionAlgebra

Create MxFitFunctionAlgebra Object
MxInterval-class

MxInterval
MxBaseObjectiveMetaData-class

MxBaseObjectiveMetaData
MxBounds-class

MxBounds Class
mxBounds

Create MxBounds Object
mxComputeStandardError

Compute standard errors given the Hessian or inverse Hessian
mxComputeSequence

Invoke a series of compute objects in sequence
mxComputeReportExpectation

Report expectation
Bollen

Bollen Data on Industrialization and Political Democracy
BaseCompute-class

BaseCompute
imxDmvnorm

A C implementation of dmvnorm
mxComputeTryHard

Repeatedly attempt a compute plan until successful
example2

Bivariate twin data example from Classic Mx Manual
imxDiff

Set difference on regular types or S4 objects
imxHasDefinitionVariable

imxHasDefinitionVariable
MxOptionalChar-class

An optional character
mxExpectationNormal

Create MxExpectationNormal Object
mxExpectationGREML

Create MxExpectationGREML Object
MxOptionalLogical-class

An optional logical
mxRAMObjective

DEPRECATED: Create MxRAMObjective Object
MxRAMModel-class

MxRAMModel
MxOptionalCharOrNumber-class

A character, integer, or NULL
mxSimplify2Array

Like simplify2array but works with vectors of different lengths
MxOptionalMatrix-class

An optional matrix
mxStandardizeRAMpaths

Standardize RAM models' path coefficients
myGrowthKnownClassData

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

List Currently Available Model Types
myGrowthMixtureData

Data for a growth mixture model
mxVersion

Returns Current Version String
omxCheckTrue

Boolean Equality Testing Function
myAutoregressiveData

Example data with autoregressively related columns
myFADataRaw

Example 500-row dataset with 12 generated variables
omxCheckWarning

Correct Warning Message Function
omxMatrixOperations

MxMatrix operations
omxMnor

Multivariate Normal Integration
omxSelectRowsAndCols

Filter rows and columns from an mxMatrix
omxSaturatedModel

Create Reference (Saturated and Independence) Models
imxHasNPSOL

imxHasNPSOL
imxPreprocessModel

imxPreprocessModel
imxReplaceSlot

imxReplaceSlot
imxPPML.Test.Test

imxPPML.Test.Test
imxIsPath

imxIsPath
imxIsDefinitionVariable

imxIsDefinitionVariable
imxReportProgress

Report backend progress
imxSfClient

imxSfClient
imxSimpleRAMPredicate

imxSimpleRAMPredicate
latentMultipleRegExample1

Example data for multiple regression among latent variables
latentMultipleRegExample2

Example data for multiple regression among latent variables
mxAvailableOptimizers

mxAvailableOptimizers
mxAlgebraObjective

DEPRECATED: Create MxAlgebraObjective Object
mxComputeDefault

Default compute plan
mxComputeGradientDescent

Optimize parameters using a gradient descent optimizer
mxComputeEM

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

Compute the quality of the Hessian
mzfData

MZ female example twin data
mzmData

MZ Male example data
omxCheckCloseEnough

Approximate Equality Testing Function
omxCheckEquals

Equality Testing Function
omxConstrainMLThresholds

omxConstrainMLThresholds
OpenMx

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

Approximate Percent Equality Testing Function
ordinalTwinData

Data for ordinal twin model
omxAllInt

All Interval Multivariate Normal Integration
omxApply

On-Demand Parallel Apply
omxLocateParameters

Summarize Model Parameters
omxLapply

On-Demand Parallel Lapply
vech2full

Inverse Half-vectorization
omxSetParameters

Assign Model Parameters
vechs

Strict Half-vectorization
omxSymbolTable

Internal OpenMx algebra operations
mxConstraint

Create MxConstraint Object
MxConstraint-class

Class "MxConstraint"
mxFitFunctionML

Create MxFitFunctionML Object
mxFIMLObjective

DEPRECATED: Create MxFIMLObjective Object
mxFactor

Fail-safe Factors
mxFitFunctionMultigroup

Create MxFitFunctionMultigroup object
mxMakeNames

mxMakeNames
MxListOrNull-class

An optional list
mxNormalQuantiles

mxNormalQuantiles
MxOptionalNumeric-class

An optional numeric
mxOption

Set or Clear an Optimizer Option
mxPath

Create List of Paths
numHess2

numeric Hessian data 2
numHess1

numeric Hessian data 1
mxTryHard

Make multiple attempts to run a model
omxDefaultComputePlan

Construct default compute plan
mxThreshold

Create List of Thresholds
omxDetectCores

omxDetectCores
omxGraphviz

Show RAM Model in Graphviz Format
omxRMSEA

Get the RMSEA with confidence intervals from model
omxGetRAMDepth

omxGetRAMDepth
omxSapply

On-Demand Parallel Sapply
vec2diag

Create Diagonal Matrix From Vector
vechs2full

Inverse Strict Half-vectorization
vech

Half-vectorization