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

st: Re: X-Priority: 3 (Normal)


From   "victor michael zammit" <vmz@vol.net.mt>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: Re: X-Priority: 3 (Normal)
Date   Fri, 7 Nov 2003 18:09:05 +0100

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 <aa_surf@gmx.at>
To: <statalist@hsphsun2.harvard.edu>
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/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index