Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.

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

From |
"Martin Weiss" <martin.weiss1@gmx.de> |

To |
<statalist@hsphsun2.harvard.edu> |

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

Date |
Wed, 17 Feb 2010 21:36:27 +0100 |

<> " Somewhere along that chain, matrices are being cleared." -diagti- says: -clear- in its line 228, which these days would not hurt Moleps' matrices. Yet in this case, -diagt- being old, it is called under -version- 9 where a destruction of matrices was still part of -clear-`s duties... HTH Martin -----Original Message----- From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Nick Cox Sent: Mittwoch, 17. Februar 2010 21:21 To: statalist@hsphsun2.harvard.edu Subject: st: RE: where did my matrix go after calling -diagt- You've got much more than that going on. -diagt- calls -diagti- which calls many other things, and so on. Somewhere along that chain, matrices are being cleared. It's not your problem below, but I did notice that -diagt- overwrites any existing matrix called T. As it destroys such a matrix any way, that's incidental, but using a temporary name would be widely considered better practice. Nick n.j.cox@durham.ac.uk moleps 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. * * 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/

**Follow-Ups**:**st: RE: RE: RE: where did my matrix go after calling -diagt-***From:*"Nick Cox" <n.j.cox@durham.ac.uk>

**References**:**st: where did my matrix go after calling -diagt-***From:*moleps <moleps2@gmail.com>

**st: RE: where did my matrix go after calling -diagt-***From:*"Nick Cox" <n.j.cox@durham.ac.uk>

- Prev by Date:
**st: RE: RE: where did my matrix go after calling -diagt-** - Next by Date:
**st: RE: RE: RE: where did my matrix go after calling -diagt-** - Previous by thread:
**st: RE: where did my matrix go after calling -diagt-** - Next by thread:
**st: RE: RE: RE: where did my matrix go after calling -diagt-** - Index(es):