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
Performing a Backward Hierarchical Stepwise Selection on Multiple Imputed DataHi can someone help me figure out how to perform this in Stata 15? I looked for possible solutions a…
grqreg xlabel and ylabelHello there, I am facing a problem when using the xlabel and ylabel in grqreg in STATA Quantile Reg…
Margins and Predict for Tobit estimationI have a question regarding the following error message: missing predicted values encountered within…
Observations for the same ID on multiple lines Code: * Example generated by -dataex-. To install: ssc install dataex clear input str33 country flo…
Setting significant levels and explanationHi everyone, I am new to the forum. My original paper shows that " *, ** and *** denote significanc…
Subscribe to:
Post Comments (Atom)
0 Response to inquire data problems: gen week
Post a Comment