Can someone explain why the following code in R gives different results depending on whether = or <- is used to assign the steps argument:
library(MASS)
quine.hi <- aov(log(Days + 2.5) ~ .^4, quine)
quine.nxt <- update(quine.hi, . ~ . - Eth:Sex:Age:Lrn)
quine.stp <- stepAIC(quine.nxt,
                     scope = list(upper = ~Eth*Sex*Age*Lrn, lower = ~1),
                     trace = TRUE,
                     steps = 6)
quine.stp_2 <- stepAIC(quine.nxt,
                       scope = list(upper = ~Eth*Sex*Age*Lrn, lower = ~1),
                       trace = TRUE,
                       steps <- 6)
 
     
    