Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Display MATA matrix?

    Hi all,

    I've a maybe somewhat trivial question, but one I couldn't google the answer to.
    I'm trying to look at a matrix generated by a user-written command (spmat .., geoda , to be exact). There is an option to convert this into a MATA object (spmat getmatrix). So I now have this object, but how do I look at it? In STATA I would use matrix list myobj. Does something like this exist for MATA? If not, what command would you use to turn it into a .dta file (or normal STATA matrix) ?

    If you could help me here I would be grateful.

    Tim Umbach

  • #2
    The help says
    Copy the contiguity matrix contained in the spmat object cobj to the Mata matrix mymat
    . spmat getmatrix cobj mymat
    so for the present example type

    Code:
    mata:mymat
    to show mymat in Mata
    See help m1_first for details above invoking Mata.

    Comment


    • #3
      Thanks a lot. I know that was a little bit of a silly question, but I couldn't find this in the help.

      All the best,

      Tim Umbach

      Comment

      Working...
      X