umx

Github commits cran version Monthly Downloads Total Downloads Rdoc DOI License

umx is a package designed to make structural equation modeling easier, from building, to modifying and reporting.

citation("umx")

You should cite: Timothy C. Bates, Michael C. Neale, Hermine H. Maes, (2019). umx: A library for Structural Equation and Twin Modelling in R. Twin Research and Human Genetics, 22, 27-41. DOI:10.1017/thg.2019.2

And Luis F.S. Castro-de-Araujo, Nathan A. Gillespie, Michael C. Neale, and Timothy Charles Bates (2026). umx version 4.5: Extending Twin and Path-Based SEM in R with CLPM, MR-DoC, Definition Variables, Onyx Integration, and Censored Distributions. Twin Research and Human Genetics, 1-6. DOI:10.1017/thg.2026.10056

Overview Road map, and Tutorials.

umx includes high-level functions for complex models such as multi-group twin models, as well as graphical model output.

Install it from CRAN:

install.packages("umx")
library(umx)
?umx

Most functions have extensive and practical examples (even figures for the twin models): so USE THE HELP :-).

See what is on offer with ‘?umx’. There are online tutorials at tbates.github.io.

umx stands for “user” OpenMx functions. For users, the two most import families in umx are:

  1. umxRAM. This makes path-based SEM in R straightforward, handling ordinal thresholds, start values, labels automatically. It can also interpret basic lavaan if you get a script in that language.
  2. A suite of twin modelling functions, such as umxACE.

Both suites are supported by umxSummary which generates publication-ready tables, and and plot which makes graphical display of your models easy and flexible. There are many other helpers for data-wrangling twin data, working with prolific, scoring scales, printing to models (try umxAPA()) among other tasks.

Some highlights include:

  1. Building Path Models
  2. Reporting output
  3. Modify models
  4. Twin modeling!
  5. Easy-to-remember options
  6. Many more miscellaneous helpers e.g.

Code and requests welcome via Github. Tell your friends! Publish good science :-)

For thrill-seekers and collaborators only: the bleeding-edge development version is here:

install.packages("devtools")
library("devtools")
install_github("tbates/umx")
library("umx")
?umx