I have a large data set which contains from Oct 2002 to Feb 2007. The procedure is: From Oct 19, 2005 to Oct 31, 2005 is week 0.
And after Oct 31, 2005, week is denoted as usual. In other words, Nov 1-7 is week 1, Nov 8-14 is week 2, etc.
And before Oct 19, 2005, week is denoted as from -1. In other words, Oct 18 - 12 is week -1. Oct 11 - 5 is week -2, etc.
How should I do this except manually entering more than 200 lines?
Related Posts with inquire data problems: gen week
Generate sequencial dicotomic variableHi all, I am trying to alternate position label (pos=6 and pos=12) in a scatter graph, for this pur…
Graphing three-way interactionHi Statalist, In one of my models I include a three way interaction between two dichotomous variabl…
Interpreting quadratic terms in a multiple linear regression.Hi everyone on Statalist, I am working on a project and have run into a few obstacles. The purpose…
Selection by zone and rank Hi, I want to select 10 districts out of 24 districts by zone and a rank variable. There are 5 zon…
GLLAMM error not convergeHi all, I have date of 100 employees per company, for several companies. I would like to perform a …
Subscribe to:
Post Comments (Atom)
0 Response to inquire data problems: gen week
Post a Comment