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

st: RE: Ouputting tabulated data


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: Ouputting tabulated data
Date   Sun, 13 Nov 2005 17:44:57 -0000

Stata 6 included the -contract- command, which 
may be useful to you. 

Nick 
n.j.cox@durham.ac.uk 

Christopher.Romano@asu.edu
 
> I am tabulating a variable in order to determine the 
> frequency of observations for particular occurences.  
> 
> Question: How can I output the results of the tabulation 
> (including the 
> frequency of identical observations) into a new data set for 
> statistical 
> analysis?  In particular I am attempting to analyze the 
> 'Freq.' variable that 
> appears in the tabulation output. 
> 
> Here is an example of what I am attempting to output to a new 
> data set:
> 
> 
>        MR . |      Freq.     Percent        Cum.
> ------------+-----------------------------------
> B0000004395 |          1        0.03        0.03
> B0000004433 |          1        0.03        0.05
> B0000006672 |          1        0.03        0.08
> B0000006942 |          3        0.08        0.16
> 
> 
> P.S. Using version 6.0

*
*   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