Skip to content
Prev 6397 / 63424 Next

stepwise algorithm step() on coxph() (PR#1159)

This is not an error.  Nobody said step would work with coxph models.
The help page says

  object: an object representing a model of an appropriate class. This
          is used as the initial model in the stepwise search.

and you are jumping to conclusions.  I've added a note to the help file.

There is an extractAIC.coxph method for use with stepAIC in package MASS.
That does work in your example.

I had a report about multinom fits and step() recently: same answer, it is
stepAIC that works, not step.

Think of step() as minimal implementation to provide some compatibility
with that in S (which only offers lm and glm methods).  And as step() in S
works with deviances, the compatibility function does too.
On Mon, 5 Nov 2001 jerome@hivnet.ubc.ca wrote: