You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I couldn't reproduce the error on RQuantLib_0.4.15 and QL 1.16 Windows. However, here's my thoughts of what this might be. TLDR: evaluation date should be 2016-02-15 to begin with.
I don't think the error was due to DayCounters.
This error should be due to an IborIndex ("no-fix") created by the QL::DepositRateHelper (as part of RQuantLib:::discountCurveEngine). Somehow the fixingDays probably got set to 2 days, in which case an IborIndex that settles on 2016-02-17 would want fixing values for 2016-02-15, either via provided real historic fixing, or YieldTermStructure based forecast.
This is where the evaluationDate comes in, if 2016-02-15 is on or after the QuantLib global evaluation date, then QL will use YieldTermStructure to forecast, otherwise it tries to read historic fixings, and crash with this error msg when it realised historic fixings are not provided.
Yes it is likely something else is going on. This one example has been "brittle". I think I once moved the date to Feb 16.
Otherwise, similar here. It seems to behave (better) with the GH version and a date of Feb 15 so I will just push that for now. I won't have time to dig deeper.
CRAN emailed me as they noticed that the (old) example in
help(SabrSwaption)
now fails:Moving the date to 2016-02-15 appears to avoid this.
@klin333 as you spent so much time and careful attention on date counters, any other suggestion you may have?
The text was updated successfully, but these errors were encountered: