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
Sort Means of Multiple VariablesHi! I have what I hope is a pretty easy question to answer for the pros out there that I have been u…
Ellip (ellipse) issuesGreetings - my first post, so apologies for being ignorant of conventions, any directions/instructio…
Surpress insig2u in regression outputWhen I illustrate my Regression Output: ------------------------------------------------------------…
Discrete choice, eaalogit command, nlcom command and the probability of a given attribute non-attendace patternI'm using the eaalogit command by A. R. Hole ("A discrete choice model with endogenous attribute att…
Making "dataex" command work to export lines of code to statalistHello, I can get dataex to work when all I need to do is get state to make a list of values, but I …
Subscribe to:
Post Comments (Atom)
0 Response to inquire data problems: gen week
Post a Comment