Skip to content
Prev 222159 / 398500 Next

Code to calculate internal rate of return

Unfortunately, this is not a robust implementation, and is derailed by

Error in uniroot(f, c(-1, 1)) : 
  f() values at end points not of opposite sign