#' @rdname print.sc
#' @export
print.sc_outlier <- function(x, digits = "auto", ...) {
cat("Outlier Analysis for Single-Case Data\n\n")
if (x$criteria[1] == "CI") {
names(x$ci.matrix) <- x$case.names
cat("Criteria: Exceeds", as.numeric(x$criteria[2]) * 100,
"% Confidence Interval\n\n")
print(x$ci.matrix)
}
if (x$criteria[1] == "SD") {
names(x$sd.matrix) <- x$case.names
cat("Criteria: Exceeds", x$criteria[2], "Standard Deviations\n\n")
print(x$sd.matrix)
}
if (x$criteria[1] == "MAD") {
names(x$mad.matrix) <- x$case.names
cat("Criteria: Exceeds", x$criteria[2], "Mean Average Deviations\n\n")
print(x$mad.matrix)
}
if (x$criteria[1] == "Cook") {
cat("Criteria: Cook's Distance based on piecewise-regression exceeds",
x$criteria[2],"\n\n")
}
for(i in 1:length(x$dropped.n)) {
cat("Case",x $case.names[i],": Dropped", x$dropped.n[[i]], "\n")
}
cat("\n")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.