Re: [Rd] Anomaly in [.terms

2011-02-22 Thread William Dunlap
> -Original Message- > From: r-devel-boun...@r-project.org > [mailto:r-devel-boun...@r-project.org] On Behalf Of Terry Therneau > Sent: Monday, February 21, 2011 11:32 AM > To: r-devel@r-project.org > Subject: [Rd] Anomaly in [.terms > > > This arose whe

Re: [Rd] Anomaly in [.terms

2011-02-21 Thread Prof Brian Ripley
From the NEWS for 2.13.0-to-be \item \code{drop.terms} and the \code{[} method for class \code{"terms"} no longer add back an intercept. (Reported by Niels Hansen.) so it has been fixed, just not rolled out yet. On Mon, 21 Feb 2011, Terry Therneau wrote: This arose when wo

[Rd] Anomaly in [.terms

2011-02-21 Thread Terry Therneau
This arose when working on an addition to coxph, which has the features that the X matrix never has an intercept column, and we remove strata() terms before computing an X matrix. The surprise: when a terms object is subset the intercept attribute is turned back on. My lines 2 and 3 below were