Hi SAS Community
I am rather new to SAS.
I want to built a monthly panel data set from the following data structure:
Identifier | Start date | End date |
X | 01/01/1985 | 31/03/1985 |
Y | 01/04/1999 | 30/04/2005 |
And the data set i want looks like this:
Identifier: | Month |
X | January 1985 |
X | February 1985 |
X | March 1985 |
Y | April 1999 |
Y | May 1999 |
Y | ... |
Y | April 2005 |
I have tried some different approaches. However, none of them have seemed to work.
For example I have used the intnx-command to create a new variable with the next month prior to the startdate. But going from a new variable to a new observation have troubled me, so I hope you can help me.
Best regards Rasmus