Hello,

I am having problems with the following

a) Converting my data from a long dataset to a wide. I understand the command function that I need, i.e. reshape wide varlist, i( ) and j( ). What I really need next is to determine my j variable.

b) In order to get my j variable - suppose I have two dates: 1. a regular date#1 (e.g. November 20, 2010) and 2. I want to determine the months after that date given another regular date#2 (e.g. March 15, 2011). How would I go about doing that?

Also, if my second set of regular dates#2 contains dates that come before regular date#1 how do I specify that as well?

The end result is I basically want my data to go from long to wide and for the variable headings to contain measurements for each month after the regular date#1.

Hope that makes sense, thanks.

I am having problems with the following

a) Converting my data from a long dataset to a wide. I understand the command function that I need, i.e. reshape wide varlist, i( ) and j( ). What I really need next is to determine my j variable.

b) In order to get my j variable - suppose I have two dates: 1. a regular date#1 (e.g. November 20, 2010) and 2. I want to determine the months after that date given another regular date#2 (e.g. March 15, 2011). How would I go about doing that?

Also, if my second set of regular dates#2 contains dates that come before regular date#1 how do I specify that as well?

The end result is I basically want my data to go from long to wide and for the variable headings to contain measurements for each month after the regular date#1.

Hope that makes sense, thanks.

## Comment