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

Re: st: how to recover data saved with tabstat ?


From   Enzo Alice <[email protected]>
To   [email protected]
Subject   Re: st: how to recover data saved with tabstat ?
Date   Sat, 11 Dec 2004 15:31:23 +0100

At 13.19 11/12/04 +0100, you wrote:
Can someone help me with this easy question I was not able to solve.
I have two numeric variables (see summarize) and I calculate with tabstat
a proportion of dead according to quarters (from 1 to 10) of sequential years .
**************************************************************
. summ op_quart dead

Variable | Obs Mean Std. Dev. Min Max
-------------+--------------------------------------------------------
op_quart | 2207 5.556411 2.905487 1 10
dead | 2207 .0475759 .2129154 0 1


. tabstat op_quart dead , by(op_quart) stat(mean) save

Maybe collapse could be enough:

collapse dead, by(op_quart)

Enzo


^^^^^^^^^^^^^^^^
Enzo Coviello
Dipartimento di Prevenzione ASL BA/1
via L. Barbera 27 - 70055 MINERVINO MURGE (BA)
Italy
tel - fax +39 0883 691053
tel (home) +39 0883 695055
mobile 347 5016016
*
* 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