在使用STEP命令回归时,遇到了如下问题: step(tobit1<-tobit(Y~., left=-Inf, right=1, data=d))
Start:  AIC=-7.84
Surv(ifelse(Y >= 1, 1, Y), Y < 1, type = "right") ~ Z1 + Z2 + 
    Z3 + Z4 + Z5 + Z6 + Z7 + Z8 + Z9 + Z10 + Z11 + Z12
错误于Ops.Surv(Surv(ifelse(Y >= 1, 1, Y), Y < 1, type = "right"), 1) : 
  Invalid operation on a survival time
此外: 警告信息:
In survreg.fit(X, Y, weights, offset, init = init, controlvals = control,  :
  Ran out of iterations and did not converge
而是用普通的ols回归对同样数据做逐步回归时,命令如下:step(lm1<-lm(Y~., data=d)),就不会出现问题,可以顺利得到结果。
不知道这是怎么回事,恳请诸位高手解惑!