hi,
my data looks as folow:
I want to generate (maybe egen) a new var which will include the IRR of each project (id). I have two main problems:
1. As you can see there is no observations for some of the years (its fine because the flow in these years was zero) but it is problematic for the irr calculation. How could I add observation for the missing years and zero for the flow?
2. What is the best way to calculate the IRR?
Thank you,
Guy.
my data looks as folow:
id | year | flow |
1 | 2008 | -100,000 |
1 | 2010 | 30,000 |
1 | 2012 | 40,000 |
1 | 2013 | 35,000 |
1. As you can see there is no observations for some of the years (its fine because the flow in these years was zero) but it is problematic for the irr calculation. How could I add observation for the missing years and zero for the flow?
id | year | flow |
1 | 2009 | 0 |
1 | 2011 | 0 |
2. What is the best way to calculate the IRR?
Thank you,
Guy.
Comment