Statalist The Stata Listserver

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

st: RE: RE: matrix of significance stars

From   "Adam Seth Litwin" <aslitwin@MIT.EDU>
To   <>
Subject   st: RE: RE: matrix of significance stars
Date   Fri, 28 Jul 2006 13:29:57 -0400

Thanks, Roger.  I had another thought.

If estimation commands create a vector of p-values (one for each independent
variable), then I could just use those to generate zero, one, two, or three
stars for each independent variable.

That would be easy...except that I don't see an e(p) matrix (not the scalar
for the entire model) when I type -ereturn list- or -return list- after
estimating a model.  Surely, the p-values must be accessible, no?  But how?

-----Original Message-----
[] On Behalf Of Newson, Roger B
Sent: Friday, July 28, 2006 12:47 PM
Subject: st: RE: matrix of significance stars

The Stata matrix language (documented online by typing -whelp matrix-)
supports only numeric matrices, not string matrices. (This is in
contrast to the matrix language Mata, used in low-level programming,
which does support string matrices.) Therefore, we can only produce a
string variable of stars (as in -parmest-), and not a Stata string
matrix of stars.

You might like to write a Mata program to produce a Mata string matrix
of stars. However, I don't know what you would want to do with such a
matrix, once it has been produced.

I hope this helps.


Roger Newson
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
Tel: +44 (0)20 7352 8121 ext 3381
Fax: +44 (0)20 7351 8322

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

-----Original Message-----
[] On Behalf Of Adam Seth
Sent: 28 July 2006 14:15
Subject: st: matrix of significance stars

Hello, everyone.

I am trying to figure out the easiest way to build a matrix of
stars (or other symbols) after either an estimation command or, better
after building a table of estimates.  I figured there would be something
like e(stars), especially since the estimates table can display them so
readily.  But, short of -parmest-, which makes me build a whole new
I'm not sure how to proceed.

Thank you for your help.  adam

*   For searches and help try:

*   For searches and help try:

*   For searches and help try:

© Copyright 1996–2021 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index