R/bmbstats-constructor.R

Defines functions new_bmbstats

new_bmbstats <- function(estimators,
                         estimator_function,
                         SESOI_lower_function,
                         SESOI_upper_function,
                         boot,
                         extra = NULL,
                         control,
                         na.rm) {
  bmbstats_object <- list(
    estimators = estimators,
    estimator_function = estimator_function,
    SESOI_lower_function = SESOI_lower_function,
    SESOI_upper_function = SESOI_upper_function,
    boot = boot,
    extra = extra,
    control = control,
    na.rm = na.rm
  )

  class(bmbstats_object) <- "bmbstats"
  return(bmbstats_object)
}
mladenjovanovic/bmbstats documentation built on Aug. 5, 2020, 4:20 p.m.