Questions tagged [openmx]

Use this tag for questions regarding the R Structural equation modelling package OpenMx.

9 questions
4
votes
2 answers

Intruments Call Tree broken mix of R, C++ and Fortran

I am trying to profile a function of OpenMx, an R package containing C++ and Fortran code, for CPU time. My operating system is OS X 10.10. I have read the section regarding this topic in the R manual. This section and this post lead me to try…
Julian Karch
  • 444
  • 4
  • 20
3
votes
0 answers

Converting a vector to full matrix in OpenMx

I computed the vectorized form of an implied variance-covariance matrix using mxAlgebra in OpenMx. Now, I need to reconstruct this to a matrix in order to run the model. OpenMx has the function vech2full which does what I want for half-vectorized…
Sacha Epskamp
  • 46,463
  • 20
  • 113
  • 131
2
votes
2 answers

cannot install package OpenMx in R

I'm running R version 3.5 on a mac. When I try to install OpenMx by install.packages("OpenMx") it eventually fails after a bunch of warning messages. At first the warning message was xcrun: error: invalid active developer path…
Scott
  • 79
  • 7
1
vote
1 answer

How do I update scripts from OpenMx 1 to OpenMx 2?

I have an example OpenMx script written a few years ago to do twin modelling. It was written for OpenMx version 1.0 (script linked here ) When I run it, there are some warnings about updating fit functions and objectives. How should I update it to…
tim
  • 3,559
  • 1
  • 33
  • 46
1
vote
1 answer

Time Invariant Predictor of Slope and Intercept in Latent Growth Curve Model in OpenMx

I'm trying to figure out how to properly add a predictor of the slope and intercept in a latent growth curve model in the OpenMx package for R. I would like to predict the slope and intercept from, say, gender in a very simple growth curve model.…
jflournoy
  • 763
  • 1
  • 8
  • 23
0
votes
2 answers

semPlot won't install in R/Rstudio on MacOS 11.4 because OpenMx won't install & it's a dependency

I'm running R 3.6.1 in an Anaconda environment (it won't let me upgrade to v4) and trying to install semPlot to accompany lavaan which installed fine. Here are the packages I've installed: library(psych) # for Chronbach's alpha…
steve---g
  • 365
  • 2
  • 11
0
votes
1 answer

compile linux program (OpenMX) for windows with MinGw platform and libraries such as MPICH,fftw lapack and BLAS?

The openMX code (http://www.openmx-square.org/download.html) is a software package for nano-scale material simulations based on density functional theories. it has a make file which contains C and fortran compiler executable, libraries and include…
0
votes
1 answer

Installing OpenMx package in R on Ubuntu 18.04LTS

I get the following error when trying to install (install.packages("OpenMx")) OpenMx in R on Ubuntu 18.04. I am not familiar with compiling C code, so I ask that you "dumb it down" for me a bit. Installing package into…
Brigadeiro
  • 2,649
  • 13
  • 30
0
votes
2 answers

In OpenMx 2, what does Error: no slot of name "objective" for this object of class "MxRAMModel" mean?

In OpenMx 1, we could access the objective with model@objective In OpenMx 2, this slot is missing (as the objective now distinguishes explicitly between the expectation and the fit function). So, I guess we should be accessing the objective with…
tim
  • 3,559
  • 1
  • 33
  • 46