search for: npolysplin

Displaying 3 results from an estimated 3 matches for "npolysplin".

Did you mean: npolyspline
2011 May 23
0
Error in backSpline.npolySpline(sp) : spline must be monotone
I get the following error: Error in backSpline.npolySpline(sp) : spline must be monotone Has anyone had this error before? any ideas on a workaround? > > vols=read.csv(file="C:/Documents and Settings/Hugh/My > Documents/PhD/Swaption vols.csv" + , header=TRUE, sep=",") > X<-ts(vols[,2]) > #X > > > dcOU&...
2002 Apr 22
1
predict.*bSpline() bugs extrapolating for deriv >= 1 (PR#1473)
...epresentation (isB <- interpSpline(x,y, bSpl = TRUE))# B-spline repr. xo <- c(0, x, 10)# x + outside points options(digits = 4) for(der in 0:3) # deriv=3 fails! print(formatC(try(predict(isP, xo, deriv = der)$y), wid=7,format="f"), quote = FALSE) ##- Error in predict.npolySpline(isP, xo, deriv = der) : ##- subscript out of bounds ## Same for B-spline (instead of Polynom.): for(der in 0:3) # deriv=3 fails! print(formatC(try(predict(isB, xo, deriv = der)$y), wid=7,format="f"), quote = FALSE) ##- Error in predict.nbSpline(isB, xo, deriv = der) : #...
1998 Apr 07
3
R-beta: spline problems(?)
Hi, I am a total beginner with this whole thing so please have patience! I am trying to run an S-plus program with a certain line: spline(1:nrow(y), y[,1],n=100); This crashes with: Error: NAs in foreign function call (arg 8) Apparently, this is caused by the last command of spline: u <- seq(xmin, xmax, length.out = n) .C("spline_eval", z$method, length(u), x = u, y =