[Rd] predict in Pspline package (PR#2714)

Simon Urbanek Simon.Urbanek at math.uni-augsburg.de
Tue Apr 1 14:10:15 MEST 2003


On Tuesday, April 1, 2003, at 02:02  AM, h95mr at mun.ca wrote:

> To whom it may concern,
>
> I don't know whether this is really a bug with the Pspline package or
> only a problem with my installation. Things work fine in Linux but
> not in Mac OS X (Darwin). Both system run the latest public versions
> of R and Pspline.
1.6.1 is not really latest public version of R.

R 1.6.2 works fine for Mac OS X 1.2.4:

 > library(pspline)
 > tt <- seq (0,1,length=20)
 > xt <- tt^3
 > fit <- smooth.Pspline (tt, xt, norder=3,spar=0.0001, method=1)
 > predict.smooth.Pspline (fit, tt, nderiv=0)[,1]
  [1]  0.0040913548  0.0002529571 -0.0004989511  0.0019184414  
0.0077153296
  [6]  0.0172687013  0.0311322187  0.0500210668  0.0747811296  
0.1063514794
[11]  0.1457260829  0.1939169313  0.2519179914  0.3206683353  
0.4010138472
[16]  0.4936697119  0.5991895918  0.7179504746  0.8501625554  
0.9959086452

Try the latest version of R and see if it works for you.

btw: library(Pspline) works only because of case-insensitivity of HFS+.

-
platform powerpc-apple-darwin6.4
arch     powerpc
os       darwin6.4
system   powerpc, darwin6.4
status   Patched
major    1
minor    6.2
year     2003
month    03
day      17

Cheers
Simon

---
Simon Urbanek
Department of computer oriented statistics and data analysis
University of Augsburg
Universitätsstr. 14
86135 Augsburg
Germany

Tel: +49-821-598-2236
Fax: +49-821-598-2280

Simon.Urbanek at Math.Uni-Augsburg.de
http://simon.urbanek.info



More information about the R-devel mailing list