Statalist The Stata Listserver


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

st: tabstat: how to access saved r(values)


From   "b. water" <[email protected]>
To   "statalist" <[email protected]>
Subject   st: tabstat: how to access saved r(values)
Date   Tue, 9 May 2006 16:16:06 +0000

Dear all,

Stata 8.2,

I did:

. tabstat incidn popsize, stats (sum) save

   stats |      incidn  popsize
---------+--------------------
     sum |        83      3188
------------------------------

. return list

matrices:
           r(StatTot) :  1 x 2

I want to access r(whatever x) that holds 83,  r(whatever y) that holds 3188, and r(whatever z) that holds the statistics (which in this case was a sum of)  if possible. Reason I ask, so that I can utilize the values in a -do- file. Looking at the manual [R] S-Z p. 195 this seems to be tantalizingly possible but I don't know how to achieve it. Help's appreciated.

Regards,
bw
_________________________________________________________________
Join the next generation of Hotmail and you could win the adventure of a lifetime
http://www.imagine-msn.com/minisites/sweepstakes/mail/register.aspx
*
*   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