R/internalReevalFit.R

Defines functions internalReevalFit

internalReevalFit <- function(object,data,step,silent=FALSE,verbose=FALSE){
  object$call$data <- data
  try2fit <- try(refit <- eval(object$call),silent=silent)
  if (inherits(try2fit,"try-error")){
    if (verbose==TRUE)
      warning(paste("During bootstrapping: model ",class(object)[[1]]," failed in step ",step),immediate.=TRUE)
    NULL
  }
  else
    refit
}

Try the pec package in your browser

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

pec documentation built on April 11, 2023, 5:55 p.m.