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]

st: RE: RE: where did my matrix go after calling -diagt-


From   "Alam, Sartaj" <Sartaj.Alam@uth.tmc.edu>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   st: RE: RE: where did my matrix go after calling -diagt-
Date   Wed, 17 Feb 2010 14:34:21 -0600

Great information !

-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Martin Weiss
Sent: Wednesday, February 17, 2010 2:23 PM
To: statalist@hsphsun2.harvard.edu
Subject: st: RE: where did my matrix go after calling -diagt-


<>

Try this code:

*******
mat a=(1,1)
mat l a
mat dir
diagti 2 8 20 44
mat dir
mat l a
*******

-diagti-, the -immediate- brother of -diagt-, which is called along the way,
is to blame. If you -trace- its execution, you will find a -matrix drop
_all- somewhere in your log...

HTH
Martin


-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of moleps
Sent: Mittwoch, 17. Februar 2010 20:53
To: statalist@hsphsun2.harvard.edu
Subject: st: where did my matrix go after calling -diagt-

Dear listers, 
I´m creating a table using diagt (available from ssc) for different cutoff
values of p. However the matrix is lost after calling diagt (version 2.0.5)
and the same happens using this example-code:

(stata v10.1)

(ssc install diagt)
sysuse auto.dta
gen ind=price>10000
diagt ind foreign
mat a=(r(sens),r(spec))
mat list a
diagt ind foreign
mat dir

viewsource diagt.ado --no reference as far as I can tell to dropping of
matrices...Neither with diagti.

There is a previous post with diagt for bootstrap purposes, but there is no
reference to dropping of matrices.


Any ideas?

//M


*
*   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/


*
*   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/

*
*   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