R-beta: spline problems(?)

Ross Ihaka ihaka at stat.auckland.ac.nz
Tue Apr 7 10:58:47 CEST 1998

> From: Martin Maechler <maechler at stat.math.ethz.ch>
> Subject: Re: R-beta: spline problems(?)
> Mime-Version: 1.0 (generated by tm-edit 7.95)
> >>>>> "Jim" == Jim Lindsey <jlindsey at luc.ac.be> writes:
>     Jim> I suspect that this is a problem that I pointed out some time ago
>     Jim> with integers. seq and : produce integers and the C code of spline
>     Jim> is expected doubles. Try as.double() around your 1:nrow(y) and
>     Jim> seq() calls to see if the problem goes away.  Jim

> Jim, this was exactly my own first suspicion, also.
> But it's wrong.

My first reaction also, but it seems that the problem is in the
underlying code.  Which is disapointing as it from the book by
Forsythe, Malcolm and Moler which generally has pretty good code in
it.  Unfortunately, I don't have my book at home, so I can't have a
look at it until tomorrow.

The problem is that there is a divide by zero in the computation of the
coefficients producing Inf, and it is this which causes the message
about NAs (I'll fix the message too :-).

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list