Hello,
I am trying to allocate an observation which is recorded at the last day of a month to a dataset which contains daily observations in a way such that the observation which is recorded at 29jan1993 is allocated to all daily observations I have in jan1993 in my second dataset.
My monthly dataset as well as my daily dataset range both from January 1993 to December 2014.
The second dataset contains different stocks, therefore each date is listed several times in the second dataset.
The monthly dataset looks like this:
date Sentiment
29jan1993 0,72
26feb1993 0,83
31mar1993 -0,88
...
31dec2014. 0,01
The daily dataset looks like this:
date var1 var2 var3 var4
04jan1993
04jan1993
04jan1993
04jan1993
04jan1993
05jan1993
05jan1993
05jan1993
05jan1993
05jan1993
...
31dec2014
31dec2014
31dec2014
31dec2014
31dec2014
My question how it is possible to transfer the observations from one dataset to another and how to allocate the one observation per month in the first dataset to all daily observations I have during a month in the second dataset.
Thank you very much!
Related Posts with Allocating monthly observation to daily data
U-shaped - Sasabuchi test?Dear Statalisters, I am trying to test for an inversed U-shaped between credit risk index and adju…
Difference in differences in Panel StructureHello everyone, My data set contains 63 teachers (i) from 20 schools in a panel data format with T=…
Marginsplot: using the original values instead of log values in the x-scaleDear all, I have run a panel probit model and I want to plot marginal effects for different values …
How to rank the values of all variables to one id in one year for panel data? Many thanks! Code: * Example generated by -dataex-. To install: ssc install dataex clear input float id double y…
How to draw ln(odds) against category?Hello everyone, This is my data. Chlordecone level category Total births Preterm births No prete…
Subscribe to:
Post Comments (Atom)
0 Response to Allocating monthly observation to daily data
Post a Comment