Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: st: How to get the full matrix from "duncan"?


From   千早 ケンジ <chihayakenji1893@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   RE: st: How to get the full matrix from "duncan"?
Date   Fri, 23 Apr 2010 23:01:26 +0900

Dear Maarten,

Thank you very much for your reply. I really should have reported the =
version of the program and where I got it from. It was from SSC, and it =
is the program written by Ben Jann. I am sorry for any possible =
confusion that I might have caused.

I could find the matrix r(D) after issuing -return list-, but have no =
idea of how to get that matrix out of Stata. I tried an ado named =
-mat2txt-, also written by Ben Jann and available at SSC, but it seems =
that this program  cannot find r(D).  I thought that my syntax  for =
-mat2txt- was wrong, so I tried it in three ways:=20

mat2txt, matrix(D) saving("/Users/chihayakenji/Desktop/mat.txt")
mat2txt, matrix(r(D)) saving("/Users/chihayakenji/Desktop/mat.txt")
mat2txt, matrix(rD) saving("/Users/chihayakenji/Desktop/mat.txt")

None of them seems to work. Am I doing something wrong with the syntax =
or should I use a different program for that?

Thanks in advance.

Kenji
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index