Dear members,
I Need your help with a Question regarding generating new observations.
I have several Investment funds with several Holdings in it. Some of the funds report each month, some of them each quarter, and some of them usually each quarter but also sometimes in between. What I Need is an Observation for each Holding in the fund at the end of the month with the corresponding variables.
What I have at the moment Looks like this:
After the calculations it should look like this:
The calucations for the second row would look like 10.000.000+1/3*(11.000.000-10.000.000) and in the sixth row like this 11.200.000+1/2*(13.000.000-11.200.000).
My Data has a few Million observations with something around 50 variables.
I would appreciate it a lot if someone could help me with my Problem.
I Need your help with a Question regarding generating new observations.
I have several Investment funds with several Holdings in it. Some of the funds report each month, some of them each quarter, and some of them usually each quarter but also sometimes in between. What I Need is an Observation for each Holding in the fund at the end of the month with the corresponding variables.
What I have at the moment Looks like this:
Fund | Holding | Date | Mcap |
1 | abc | 31.12.2010 | $10.000.000,00 |
1 | abc | 31.03.2011 | $11.000.000,00 |
1 | abc | 30.04.2011 | $11.200.000,00 |
1 | abc | 30.06.2011 | $13.000.000,00 |
1 | abc | 30.09.2011 | $12.500.000,00 |
1 | abc | 31.12.2011 | $13.500.000,00 |
1 | zyx | 31.12.2010 | $2.000.000,00 |
1 | zxy | 31.03.2011 | $2.100.000,00 |
1 | zyx | 30.06.2011 | $1.950.000,00 |
1 | zxy | 30.09.2011 | $1.500.000,00 |
1 | zyx | 31.12.2011 | $1.600.000,00 |
1 | zxy | 31.03.2012 | $1.610.000,00 |
1 | zyx | 30.06.2012 | $1.800.000,00 |
2 | def | 31.12.2010 | … |
2 | def | 31.03.2011 | |
2 | def | 30.06.2011 | |
2 | ghi | 31.12.2010 | |
2 | ghi | 31.03.2011 | |
… | … | … |
After the calculations it should look like this:
Fund | Holding | Date | Mcap |
1 | abc | 31.12.2010 | $10.000.000,00 |
1 | abc | 31.01.2011 | $10.333.333,00 |
1 | abc | 28.02.2011 | $10.666.666,00 |
1 | abc | 31.03.2011 | $11.000.000,00 |
1 | abc | 30.04.2011 | $11.200.000,00 |
1 | abc | 31.05.2011 | $12.100.000,00 |
1 | abc | 30.06.2011 | $13.000.000,00 |
1 | abc | 31.07.2011 | … |
1 | abc | 31.08.2011 | … |
1 | abc | 30.09.2011 | … |
1 | abc | 31.10.2011 | … |
1 | abc | 30.11.2011 | … |
… | … | … | … |
1 | zyx | 31.12.2010 | $2.000.000,00 |
2 | zyx | 31.01.2011 | $2.333.333,00 |
2 | zyx | 28.02.2011 | $2.666.666,00 |
2 | zyx | 31.03.2011 | $2.100.000,00 |
The calucations for the second row would look like 10.000.000+1/3*(11.000.000-10.000.000) and in the sixth row like this 11.200.000+1/2*(13.000.000-11.200.000).
My Data has a few Million observations with something around 50 variables.
I would appreciate it a lot if someone could help me with my Problem.
Comment