From Simon.Urbanek at math.uni-augsburg.de  Tue Apr  1 14:10:15 2003
From: Simon.Urbanek at math.uni-augsburg.de (Simon Urbanek)
Date: Tue Apr  1 13:10:28 2003
Subject: [Rd] predict in Pspline package (PR#2714)
In-Reply-To: <200304010002.h31027n9022168@pubhealth.ku.dk>
Message-ID: <843437E6-6432-11D7-8C58-000393816814@math.uni-augsburg.de>

On Tuesday, April 1, 2003, at 02:02  AM, h95mr@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@Math.Uni-Augsburg.de
http://simon.urbanek.info


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