[R] step() and stepAIC()

Murray Jorgensen maj at stats.waikato.ac.nz
Sun Oct 12 00:42:27 CEST 2008

The birth weight example from ?stepAIC in package MASS runs well as
indeed it should.

However when I change stepAIC() calls to step() calls I get warning
messages that I don't understand, although the output is similar.

Warning messages:
1: In model.response(m, "numeric") :
   using type="numeric" with a factor response will be ignored
(and three more the same.)

Checked with 2.7.0 on Os X and 2.6.2 on Windows.

Cheers,  Murray
Dr Murray Jorgensen      http://www.stats.waikato.ac.nz/Staff/maj.html
Department of Statistics, University of Waikato, Hamilton, New Zealand
Email: maj at waikato.ac.nz                                Fax 7 838 4155
Phone  +64 7 838 4773 wk    Home +64 7 825 0441    Mobile 021 1395 862

More information about the R-help mailing list