I am attempting to use the function estim_nss from the termstrc package in R. However, I am experiencing the following error:

Error in uniroot(pvcashflows, searchint, tol = tol, maxiter = 3000) : f() values at end points not of opposite sign

I read the manual and I have checked that I have specified my data input correctly, I truely do not know what the problem is.

The mannual says this error may arise due to wrongly specified start parameters or data issues, I have not specified any start parameters and i have checked my data a number of times, comparing it to the example, the format looks the same.

The line that i am runung is:

ns_res <- estim_nss(mybonds, "SA_GOV_BONDS1", method = "ns")

Can someone please shed some light on how I can solve this problem.

  • $\begingroup$ Try specifically calling on your data by an actual column, so for example, mybonds$Column1 etc and maybe that will help. $\endgroup$ – Autolatry Jan 20 '15 at 9:04
  • $\begingroup$ I have the same question. Have you solved it? $\endgroup$ – user20289 Apr 12 '16 at 15:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.