On 4/5/2013 12:44 PM, Pooja wrote:
> I'm using the bndyield function to calculate the real yield on an
> Australian inflation-linked security.
> bndyield(179.968, 0.04,
> This should return ~ +0.00735, but is instead returning -0.2048. Why is
Since it's negative, I'd guess the problem is the date format. I don't
see anything in the documentation about what is assumed for the various
dates as date strings as far as the format, but I'm guessing it has
interpreted the mm/dd/yyyy format that you have input as dd/mm/yyyy instead.