I have a business calendar:
I'm trying to apply to this dataset:
I try running
, but it does not seem to work. For example, January 10, 2003 and January 13, 2003 still have a difference of 3 units (3 days), but since the days inbetween are weekends, there should be a difference of 1 unit (1 day). Am I misunderstanding something?
Code:
* Business calendar "market" created by -bcal create- * Created/replaced on 3 Dec 2016 version 14 dateformat mdy range jan012003 dec022016 centerdate jan012003 omit dayofweek (Sa Su)
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input float date 15706 15707 15708 15711 15712 15713 15714 15715 15718 15719 end format %td date
Code:
format date %tbmarket
Comment