Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: forming groups by an ordered number

From   "" <>
To   "" <>
Subject   st: forming groups by an ordered number
Date   Fri, 22 Jun 2012 17:10:59 +0100 (BST)

Dear all,

I have a sequence of numbers that indicate days prior to a given event: (1, 2, 3, 4, 5... up to 90). 

Out of this sequence I would like to have a frequency on a weekly basis. I mean that numbers 1,2...7 take the value of 1 (i.e. this is week 1), numbers 8,9,10, 11...14 take the value of 2. 

Could one help me with that?


*   For searches and help try:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index