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
doubt regarding standard deviation using egen functionI have tried to find row wise sd for a set of variables from i_a_0 to i_c_1 syntax: egen rowsd2 = ro…
Tagging neighborhood houses within timeframeI have a dataset with property ID, longitude, latitude, listing date and closing date (sale of prope…
create variables for number of hh member by categoriesHi Stata expert. I'd like to regress an employment model. I have variables and datasets as shown bel…
Heteroscedasticity for panel data?How to apply Breusch-Pagan LM test for panel data? …
Too many predictors when using Time fixed effects for panel dataHello, I am running an xtreg-fe cluster(panelvar) on monthly data. I employ time-fixed effects too. …
Subscribe to:
Post Comments (Atom)
0 Response to inquire data problems: gen week
Post a Comment