Skip to content
Prev 9493 / 63424 Next

predict function (PR#2958)

Try
NULL data frame with 1 rows

The C code never considers that case (no variables).

Fixed in R-patched.
On Thu, 8 May 2003 mh.smith@niwa.co.nz wrote:

            
Still in 1.7.0, BTW, but we do suggest you upgrade as scores of bugs have 
been fixed since 1.6.1.
That's not so easy. The formula really is ~ 1 + poly(x, d), and there is 
no simple way to have a term which contributes nothing.  poly(x, 0) could 
be a zero-column matrix, but the subsequent code will not handle that.

It's much easier for you to handle redundant terms yourself.