Hi all,
I have the following issue, I want to create a panel out of data that contains a code (the product), a date and a price. The problem is, the way data was collected, instead of referring to a month (is supposed to be monthly), the dates refer to the actual date prices were input into the dataset. An example:
Code Price Date
77348 0.6439 03/11/2015
77348 0.6588 01/12/2015
77348 0.672 30/12/2015
See, the issue is that, for the same code, I have two entries in the same month, which doesn't allow to create the panel. The dates should instead refer to the end of the month, so that, that date 01/12/2015 should refer to November, 03/11/2015 should refer to October and so forth. That is, dates that are ate at the beginning of the month refer to the last month, dates that are at the end of the month reflect the prices at that same month.
I just don't know a way to correct this and create another time variable in Stata, since the dates are so random.
Any help is appreciated.
Related Posts with Trouble with repeated dates and panel creation
Windows 10 Pro shuts down whenever I run long Stata analysisThis is a new problem that I have never had before, but which has been persisting for about a month.…
Help file verificationHi all, This might be obvious for most of you, but since I just detected it, I thought to share it …
Understanding gsemDear all, maybe these questions are a bit silly but i am new to sem and gsem and want to use it to t…
Is it necessary to control for regional fixed effects AND cluster at the regional area in fixed effect panel analysis?I've noticed in my reading of fixed effects panel studies a lot of researchers will control for loca…
hierarchical dendrogramMy data describes a network where each 'parent' is followed by 'children', each of whom is then foll…
Subscribe to:
Post Comments (Atom)
0 Response to Trouble with repeated dates and panel creation
Post a Comment