Nothing
#' @title
#' Print Method for Seroincidence Summary Object
#'
#' @description
#' Custom [print()] function for "summary.seroincidence.by" objects (constructed by [summary.seroincidence.by()])
#'
#' @param x A "summary.seroincidence.by" object (constructed by [summary.seroincidence.by()])
#' @param ... Additional arguments affecting the summary produced.
#' @inherit print.seroincidence return
#' @examples
#' \dontrun{
#' # Estimate seroincidence
#' seroincidence <- est.incidence.by(...)
#'
#' # Calculate summary statistics for the seroincidence object
#' seroincidenceSummary <- summary(seroincidence)
#'
#' # Print the summary of seroincidence object to the console
#' print(seroincidenceSummary)
#'
#' # Or simply type (appropriate print method will be invoked automatically)
#' seroincidenceSummary
#' }
#'
#' @export
print.summary.seroincidence.by <- function(x, ...) {
cat("Seroincidence estimated given the following setup:\n")
cat(paste("a) Antigen isotypes :", paste(x %>% attr("antigen_isos"), collapse = ", ")), "\n")
cat(paste("b) Strata :", paste(x %>% attr("Strata"), collapse = ", ")), "\n")
cat("\n Seroincidence estimates:\n")
print(as_tibble(x))
invisible(x)
}
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.