Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: -tabstatmat- and matrix row name with period


From   Friedrich Huebler <[email protected]>
To   [email protected]
Subject   st: -tabstatmat- and matrix row name with period
Date   Mon, 11 Jul 2005 09:20:53 -0700 (PDT)

I have Stata 8.2. Is it possible to create a matrix row name that
contains a period? [U] 17.2 on matrix row and column names indicates
that a row name can contain a period when it has the form
ts_operator.subname. I encountered this problem when I tried
-tabstatmat- (available at SSC) with a variable whose labels indicate
ranges like "0 to 9.9" or "10 to 19.9".

. sysuse auto, clear
. lab def foreign 0 "0 to 9.9"
. lab val foreign foreign
. tabstat mpg, by(foreign) save
. set trace on
. tabstatmat mat

= matrix rownames mat =  `"0 to 9.9"' `"1"' Total
0to9:  operator invalid
------------------------------ end tabstatmat ---
r(198);

Can -matrix rownames- accept a period and is it then possible to
change tabstatmat.ado accordingly?

Thank you,

Friedrich Huebler


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index