You are here

MxMatrix object

2 posts / 0 new
Last post
carey's picture
Offline
Joined: 10/19/2009 - 15:38
MxMatrix object

(1) documentation for "mxMatrix" says "This functions [sic] creates a new MxMatrix object."
(2) documentation for "MxMatrix" says that it "is an S4 class."

consider:
> unit5 > class(unit5)
[1] "LowerMatrix"
attr(,"package")
[1] "OpenMx"

problem comes in when someone is looking for MxMatrix objects in, say, the workspace:
> objs > objs[which(sapply(objs, function(x) class(get(x))) == "MxMatrix")]
character(0)

greg

mspiegel's picture
Offline
Joined: 07/31/2009 - 15:24
The different MxMatrix

The different MxMatrix subclasses all extend from a common base class.

> extends("LowerMatrix")
[1] "LowerMatrix" "MxMatrix"
Log in or register to post comments