#' @rdname print.sc
#' @export
#'
print.sc_pet <- function(x, digits = 3, ...) {
cat("Percent Exceeding the Trend\n\n")
cat("\n")
print(x$PET, row.names = FALSE, digits = digits, ...)
cat("\n")
if (x$decreasing) {
cat("Assumed decreasing values in the B-phase.\n\n")
cat("Binom.test: alternative hypothesis: true probability < 50%\n")
cat(sprintf("PET CI: Percent of values less than lower %d%% confidence threshold (smaller %.3f*se below predicted value)\n", x$ci.percent,x$se.factor))
} else {
cat("Binom.test: alternative hypothesis: true probability > 50%\n")
cat(sprintf("PET CI: Percent of values greater than upper %d%% confidence threshold (greater %.3f*se above predicted value)\n", x$ci.percent,x$se.factor))
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.