Bugzilla – Bug 14970
unexpected behavior in ns(knots=NULL,...)
Last modified: 2012-07-04 07:32:40 UTC
ns(x, df=4, knots=NULL)
produce different results despite the fact that
function (x, df = NULL, knots = NULL, intercept = FALSE, Boundary.knots = range(x))
This is because ns() is testing knots using missing(knots) rather than is.null(knots). This caused a bug in my code that took some head scratching to locate. Is this desired behavior or a bug?
you are right. This is undesirable... and I'll tackle it
(In reply to comment #1)
> you are right. This is undesirable... and I'll tackle it
This affects bs() in the same way and the same fix should work for both.