Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: multiple matrix formats


From   "Maarten Buis" <M.Buis@fsw.vu.nl>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: multiple matrix formats
Date   Thu, 12 Jul 2007 16:16:41 +0200

-matlist- allows different formats for different columns.

Hope this helps,
Maarten

-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology 
Vrije Universiteit Amsterdam 
Boelelaan 1081 
1081 HV Amsterdam 
The Netherlands

visiting address:
Buitenveldertselaan 3 (Metropolitan), room Z434 

+31 20 5986715

http://home.fsw.vu.nl/m.buis/
-----------------------------------------

-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu]On Behalf Of Feiveson, Alan H. (JSC-SK311)
Sent: donderdag 12 juli 2007 16:14
To: statalist@hsphsun2.harvard.edu
Subject: st: multiple matrix formats

Hi - In Stata 9 ,I am trying to list a matrix with varying formats for
the columns. As an example, I can do

. matrix list M,format(%8.4f)

M[3,4]
                        F       df        p  adjustp
AG*(BR+0 - BR-7)   1.6778   1.0000   0.2075   0.6226
AG*(BR+4 - BR-7)   0.0363   1.0000   0.8504   0.8504
AG*(BR+4 - BR+0)   1.2203   1.0000   0.2803   0.5605

But how do I get a different format for each column? None of the
following work:


. matrix list M,format(%8.2f F %8.0f df  %8.2f p)
option format() incorrectly specified
r(198);

. matrix list M,format(%8.2f  %8.0f   %8.2f )
option format() incorrectly specified
r(198);

. matrix list M,format(%8.2f F, %8.0f df,  %8.2f p)
option format() incorrectly specified
r(198);

The manual doesn't appear to address this sort of option. Is it
possible? Thanks.

Al Feiveson

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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   |   What's new   |   Site index