Skip to content
Prev 23999 / 63424 Next

Bootstrapping stepAIC() with glm.nb()

You did not say what the problem was!

But you are asking that an object which is not in scope (index) be found a 
few levels down.  You should be able to fix this by substituting in the 
values in fn.  Here is one way:

         up.obj <- update(object, data = data[index[, i], ])
         Call <- up.obj$call
         Call$data <- data[index[, i], ]
         up.obj$call <- Call

(there are others).
On Fri, 23 Feb 2007, Dimitris Rizopoulos wrote: