Displaying 1 result from an estimated 1 matches for "smspl".
Did you mean:
smpl
2011 May 27
0
stinterp/spline - uniroot problem
...y much for your help!
Best,
Marc
--------------------
# growth data
x <- c(-0.60206, -0.30103, 0, 0.30103, 0.60206, 0.90309, 1.2041, 1.5051,
1.8062, 2.1072)
y <- c(1, 1.1203, 1.0689, 1.1433, 1.0283, 0.4604, 0.0752, -0.05, -0.1, -0.2)
require(stinepack)
xo <- seq(-0.7,2*pi,by=pi/250)
a.smspl <- stinterp(x,y,xo)
## 'stinterp' does not work. 'smooth.spline' works
# a.smspl <- smooth.spline(x, y, df=6)
## using "predict" together with 'stinterp' or 'spline' results in the
following error message:
## no applicable method for 'predict...