Statalist


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

st: Generate trend variable in stata


From   Diana Eastman <[email protected]>
To   <[email protected]>
Subject   st: Generate trend variable in stata
Date   Tue, 25 Nov 2008 18:10:10 -0500

Hi all,

I have a panel data set that has several repeating four-week ending
periods:  

Example:
fourwk_ending
17 Aug 96
14 Sep 96
12 Oct 96
09 Nov 96
07 Dec 96
04 Jan 97
01 Feb 97
01 Mar 97
29 Mar 97
26 Apr 97
24 May 97
21 Jun 97


I want to create a variable "trend" that will assign a numeric value to
each four-week ending period. So 17 Aug 96 might be 1, etc. 

Any help is greatly appreciated!


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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