another dummy manipulation question
Posted: Mon Apr 16, 2012 4:36 pm
After querying related threads, I still have a question regarding dummy variables.
Say I have a .txt file with 130 dates in the format "yyyy-mm-dd" that represent the release of an inflation report. I want to create a series in my workfile of 5000 obs which only equals one if the dates from my .txt file coincide with the date index of the workfile, i.e. there should be 130 1's and 4870 0's.
As it stands now, I'm doing
and then manually going through and adding 1's where they should be.
I hope this explains my problem.
Thanks
Say I have a .txt file with 130 dates in the format "yyyy-mm-dd" that represent the release of an inflation report. I want to create a series in my workfile of 5000 obs which only equals one if the dates from my .txt file coincide with the date index of the workfile, i.e. there should be 130 1's and 4870 0's.
As it stands now, I'm doing
Code: Select all
series inflation=0I hope this explains my problem.
Thanks