Copyright © 2007-2024 The OpenMx Project
The following code runs a RAM model, then lbounds a path at zero.
Running that model dies with an error about the F matrix contains dimnames and the expectation function has dimnames.
Seems a not easy to diagnose what to do, but also wrong to fail in this case? (the bound is legal).
data(myFADataRaw, package="OpenMx") manifests = names(myFADataRaw) latents = c("G") m1 <- mxModel("m1", type="RAM", manifestVars = manifests, latentVars = latents, mxPath(from = latents, to = manifests), mxPath(from = manifests, arrows = 2), # manifest residuals mxPath(from = latents, arrows = 2, free = F, values = 1), # latent fixed@1 mxPath(from = c("x1", "x2"), to = "x3", arrows = 1), # manifest causes mxPath(from = "one", to = manifests, arrows = 1), # manifest means mxData(myFADataRaw, type = "raw") ) m1 = mxRun(m1) summary(m1)$parameters[3,2:6] # 0.803 m1@matrices$A@lbound["x1", "G"] = 0 # lbound G->x1 @ 0 m1 = mxRun(m1) # Running m1 # Error: The F matrix associated with the RAM expectation function in model 'm1' contains dimnames and the expectation function has specified dimnames