R/new_sbm.r

Defines functions new_sbm

#' sbm (size biased model) class constructor
#'
#' @param x a list with required elements as indicated
#' @noRd
#'
new_sbm <- function(x = list()) {
  required <- c("data", "estimate", "formula", "model", "pdf")
  stopifnot(is.list(x))
  stopifnot(identical(required, sort(names(x))))
  structure(x, class = "sbm")
}

Try the sbd package in your browser

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

sbd documentation built on June 22, 2024, 9:50 a.m.