Statalist


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

st: RE: Date: Wed, 12 Aug 2009 09:02:06 -0400 (and matrix labels)


From   "Newson, Roger B" <[email protected]>
To   "'[email protected]'" <[email protected]>
Subject   st: RE: Date: Wed, 12 Aug 2009 09:02:06 -0400 (and matrix labels)
Date   Wed, 12 Aug 2009 14:10:40 +0100

If all else fails, and you are using Stata version 9 or above, then you can always drop into Mata and use the -st_matrix- group of functions. In Stata, type

help mf_st_matrix 

to find more details.

I hope this helps.

Best wishes

Roger


Roger B Newson BSc MSc DPhil
Lecturer in Medical Statistics
Respiratory Epidemiology and Public Health Group
National Heart and Lung Institute
Imperial College London
Royal Brompton Campus
Room 33, Emmanuel Kaye Building
1B Manresa Road
London SW3 6LR
UNITED KINGDOM
Tel: +44 (0)20 7352 8121 ext 3381
Fax: +44 (0)20 7351 8322
Email: [email protected] 
Web page: http://www.imperial.ac.uk/nhli/r.newson/
Departmental Web page:
http://www1.imperial.ac.uk/medicine/about/divisions/nhli/respiration/popgenetics/reph/

Opinions expressed are those of the author, not of the institution.

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Zurab Sajaia
Sent: 12 August 2009 14:02
To: statalist
Subject: st: Date: Wed, 12 Aug 2009 09:02:06 -0400

Dear all,
 
Can anyone advise me what's the "proper" way to reset (remove) row / column equations from a matrix?
 
I've been using using the method: 
.matrix roweq A = :
 
and this worked with all the versions (or at least 8-10) just fine, but unfortunately doesn't with the version 11. In V11 the command doesn't return any error but leaves the matrix unchanged. It seems that for version 11 the alternative method:
.matrix roweq A = "" does the trick but as you'd guess, this syntax doesn't work with the previous versions.
 
Does anyone know if there is a way to remove row equations in a way that would work in Stata versions 9-11? or the only way is to have an if statement checking for the version?
 
Any insight will be much appreciated.
Thanks,
Zurab
 
 
 
*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index