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

st: tab


From   "Andreas Aschbacher" <[email protected]>
To   [email protected]
Subject   st: tab
Date   Thu, 11 Dec 2003 14:01:57 +0100 (MET)

I have the following text-file:

1.549688               <-    I use this value below
1.551809
1.857859
2.032088
2.055405
2.211566
2.36462
2.36556
2.451005
2.464704
2.562639
2.568022
2.575661
......                          / always with 5 or 6 places behind comma   
/

and I do the following :
       .gen to_table  = 1.549688  + 0.05*floor((myvar - 1.549688 )/0.05)
       .tab to_table
in order to count the values in the intervals -
      first step : 1.549688  + 0.05         -       count value
  second step: (1.549688  + 0.05) + 0.05   - count value
  and so on
why is there no count-value "zero"when there is no value in specific
interval ?
I always have 1 at least -
any helpm will be appreciated very much

                                                                      
andreas


















-- 
+++ GMX - die erste Adresse f�r Mail, Message, More +++
Neu: Preissenkung f�r MMS und FreeMMS! http://www.gmx.net


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