R/effectboot.R

Defines functions effectboot

Documented in effectboot

effectboot <-
function(data, i, object, x1, x2, level)
 {
  d <- data[i, ]
  objecti <- object
  objecti$model <- update(object$model, data = d)
  M1i <- getM(object = objecti, x = x1, untransform = T, level = level)["Estimate"]
  M2i <- getM(object = objecti, x = x2, untransform = T, level = level)["Estimate"]
  c(M2i - M1i, 100 * (M2i / M1i - 1))
 }

Try the tlm package in your browser

Any scripts or data that you put into this service are public.

tlm documentation built on May 2, 2019, 2:11 p.m.