这段没看懂,楼主看懂了没,可否求教下Note that in the example we will use a Monday dummy and a Fridaydummy. These dummies are easily created with the Calculator (recall that the dataset is dated). First, use the function dayofweek() to created a variable DAY with DAY = 2 on Mondays, 3 on Wednesdays, etc. Then, create the Monday and Friday dummy as follows: Monday =Day == 2 and Friday = Day == 6.
|