The following proposal would change the behavior of mxMatrix() in some circumstances based on the '`nrow`

' and '`ncol`

' arguments. This proposed is based on the following bug report: http://openmx.psyc.virginia.edu/issue/2010/07/matrix-not-populated-expected-r-based-nrow-ncol

Current behavior: if any of the arguments '`values`

', '`labels`

', '`free`

', '`fixed`

', '`lbound`

', or '`ubound`

' are matrices, then the arguments '`nrow`

' and '`ncol`

' are ignored. A warning is issued informing the user that the 'nrow' and 'ncol' arguments are ignored. All the matrices of the `MxMatrix`

object will end up with dimensions equal to the dimensions of the matrix that was passed.

Proposed behavior: if the values of '`nrow`

' and '`ncol`

' are specified, then they supersede the dimensions of any of the matrices passed into '`values`

', '`labels`

', '`free`

', '`fixed`

', '`lbound`

', or '`ubound`

'. All the matrices of the `MxMatrix`

object will end up with dimensions equal to '`nrow`

' and '`ncol`

'. A warning is issued if the data length is not a sub-multiple or multiple of the numbers of rows/cols.

PROs: mxMatrix() will mimic the behavior of matrix() with respect to the '`nrow`

' and '`ncol`

' arguments.

CONs: no warning is issued if '`values`

', '`labels`

', '`free`

', '`fixed`

', '`lbound`

', or '`ubound`

' are of different dimensions, but are sub-multiples or multiples of the numbers of rows/cols.