For each of these companies, I have a dataset containing daily stock price data from which I created a business calender:
Code:
bcal create biscal, from(date) replace
Code:
gen businessdate= bofd("biscal",reguldate)
Function bofd() returns missing when the date does not appear on the specified calendar.
Is there a way to include those values what are omited according to my .stbcal file?
Code:
* Example generated by -dataex-. For more info, type help dataex clear input int regulardate float businessdate 14607 104 14570 79 14571 80 14574 82 14572 81 14577 83 14578 84 14579 85 14578 84 14579 85 14577 83 14580 86 14580 86 14580 86 14585 89 14584 88 14573 . 14584 88 14585 89 14585 89 end format %tdDD/NN/CCYY regulardate format %tbbiscal businessdate
0 Response to Business calender: Get omitted dates using bodf()
Post a Comment