Re: R-beta: spline problems(?)

Ross Ihaka (
Tue, 7 Apr 1998 20:58:47 +1200 (NZST)

Date: Tue, 7 Apr 1998 20:58:47 +1200 (NZST)
From: Ross Ihaka <>
Message-Id: <>
Subject: Re: R-beta: spline problems(?)

> From: Martin Maechler <>
> Subject: Re: R-beta: spline problems(?)
> Mime-Version: 1.0 (generated by tm-edit 7.95)
> >>>>> "Jim" == Jim Lindsey <> 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
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: