The following loop will give you the intervals that you want
local i = 25.34
while `i'<= 344256.256 {
di " " " from " `i' " " " to" " " `i' + 10
local i = `i'+10
}
or
local i = 25.34
while `i'<= 344256.75 {
di " " " from " `i' " " " to" " " `i' + 9.99
local i = `i'+10
}
if you do not want the intervals to overlap.
If you want to count the values in each interval , I do have a program ,that
does that,and I would look it up.
Victor Michael Zammit
----- Original Message -----
From: Andreas Aschbacher <[email protected]>
To: <[email protected]>
Sent: Thursday, November 06, 2003 11:46 AM
Subject: st: X-Priority: 3 (Normal)
> I am new Stata-User and I have the following question:
> I have one column with 700000 real-values from 25.34 to 344256,75 in
> ascending order.
> I want to create intervalls such as from 25.34 to 35.34 and from 35.34 to
> 45.34 and so on
> (equidistant steps) until maximum.then I want to count the values in each
> intervall,for
> example:
> from 25.34 t0 35.34 27 values
> from 35.34 to 45.34 377 values and so
> on
> how to realize this problem ? i tryed with table,tabstat,tabulate but I
> wasn't successful,
> thank you for any help.
>
> andreas
>
> --
> NEU F�R ALLE - GMX MediaCenter - f�r Fotos, Musik, Dateien...
> Fotoalbum, File Sharing, MMS, Multimedia-Gru�, GMX FotoService
>
> Jetzt kostenlos anmelden unter http://www.gmx.net
>
> +++ GMX - die erste Adresse f�r Mail, Message, More! +++
>
> *
> * 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/
>
*
* 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/