R/lmbootwrapper.R

Defines functions lmbootwrapper

hystenv <- new.env()
hystenv$warningcountHysteresis <- 0
lmbootwrapper <-
function(j,wr1,wr2,x.pred,y.pred,n,cbb,joint){
  tryCatch(lmboot(j,wr1,wr2,x.pred,y.pred,n,cbb,joint),error=function (e) {
    hystenv$warningcountHysteresis <- hystenv$warningcountHysteresis + 1
    lmbootwrapper(j,wr1,wr2,x.pred,y.pred,n,cbb,joint)
  })
      }

Try the hysteresis package in your browser

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

hysteresis documentation built on May 15, 2021, 1:09 a.m.