Nothing
#' pull_prior
#'
#' Extracts the priors from an object of class
#' \code{\link{bayesnecfit}} or \code{\link{bayesmanecfit}}.
#'
#' @param object An object of class \code{\link{bayesnecfit}}
#' or \code{\link{bayesmanecfit}} returned by \code{\link{bnec}}.
#' @return A \code{\link[base]{list}} containing the priors.
#'
#' @examples
#' library(bayesnec)
#' data(manec_example)
#' pull_prior(manec_example)
#'
#' @export
pull_prior <- function(object) {
if (inherits(object, "bayesmanecfit")) {
mods <- object$mod_fits
out <- list()
for (i in seq_along(mods)) {
out[[i]] <- mods[[i]]$fit$prior
names(out)[i] <- mods[[i]]$model
}
out
} else if (inherits(object, "bayesnecfit")) {
list(object$fit$prior)
} else {
stop("Object is not of class bayesnecfit or bayesmanecfit")
}
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.