OpenMx Developer Forums

Posted on
Picture of user. mspiegel Joined: 07/31/2009

constant + free parameter substitution proposal

There has been some talk recently of simplifying the MxAlgebra interface in two regards. It would be convenient to specify constant values or matrices in an MxAlgebra statement, without having to explicitly declare a separate MxMatrix that contains constant values. It would also be convenient to specify free parameters in an MxAlgebra statment, without having to explicitly declare a separate 1 x 1 MxMatrix that contains the free parameter. We have been referring to these proposed changes as constant substitution and free parameter substitution, respectively.

Posted on
Picture of user. mspiegel Joined: 07/31/2009

algebras checked in the front-end

As of revision 769, MxAlgebra are checked for correct dimensions before the optimizer is called.

> A <- mxMatrix("Full", nrow = 1, ncol = 1, name = 'A')
> B <- mxMatrix("Full", nrow = 1, ncol = 2, name = 'B')
> C <- mxAlgebra(A + B, name = 'C')
> model <- mxModel('model', A, B, C)
> mxRun(model)
Running model 
Error: The algebra 'model.C' in model 'model' generated the error message:
non-conformable arrays
Posted on
Picture of user. mspiegel Joined: 07/31/2009

new 'compute' flag to mxEval()

If 'compute' is FALSE (the default), then MxAlgebra expressions returns their current value as they have been computed by the optimization call (using mxRun). If the 'compute' argument is TRUE, then MxAlgebra expressions will be calculated in R. Any references to an objective function that has not yet been calculated will return a 1 x 1 matrix with a value of NA. Users will like this feature because it allows them to compare the result of algebraic expressions as computed by the back-end against those values computed by R.

Posted on
Picture of user. mspiegel Joined: 07/31/2009

means vector

The means vector is now always converted into an n x 1 matrix. The argument to mxData continues to accept an R numeric vector (in fact, I don't think the mxData function currently will accept a matrix for the means argument). But the means are now always stored as an n x 1 matrix. We had some sloppiness in the R interface where sometimes it was n x 1 and sometimes it was 1 x n. I updated the test suite in light of these changes, but I did not update the /docs.

Posted on
Picture of user. mspiegel Joined: 07/31/2009

the test suite

A gentle reminder that scripts must live in either the models/passing, models/failing, or demo/ directories, and in exactly one of these locations. Duplicating the files causes "make test" to run longer than necessary (which is a nuisance), but also forces the developers to make corrections to an existing script in two locations (which they will forget to do). Use the "svn mv" command when moving files in subversion. Also, when adding a script to the /demo directory, remember to update demo/00INDEX, although people have been good about that lately.

Posted on
Picture of user. tbates Joined: 07/31/2009

documentation-wide discussion (layout, how to include code, etc.)

Forums

Topic for discussing things that pertain to most or all of the documentation, such as software for figures, or code formatting...

Posted on
Picture of user. tbates Joined: 07/31/2009

demo files

Forums

for talking about the demo files

Posted on
Picture of user. tbates Joined: 07/31/2009
Posted on
Picture of user. mspiegel Joined: 07/31/2009

Ordinal Data Interface

At the last developer's meeting, it was decided that the ideas presented in Ordinal Data Proposal #2 would be implemented. The mxFIMLObjective(), mxMLObjective(), and mxRAMObjective() functions have been updated with a new argument "thresholds" (in the subversion trunk). This new argument is a character string that will be the name of the MxMatrix that will serve as the thresholds matrix. The thresholds matrix is an r x c matrix where r equals the length of the data with the most levels minus one and c must equal the dimensions of the covariance matrix.

Posted on
Picture of user. tbates Joined: 07/31/2009

mxEval

Topic for discussing mxEval