R/print.SIR_bootstrap.R

Defines functions print.SIR_bootstrap

#' @export
#' @keywords internal
print.SIR_bootstrap <- function(x,...) {
    if (!inherits(x, "SIR_bootstrap"))
        stop("Only use with \"SIR_bootstrap\" obects")

    cat("\nCall:\n", deparse(x$call), "\n", sep = "")

    res <- matrix(x$b, ncol = 1)
    if (!is.null(colnames(x$b))) {
        rownames(res) <- colnames(x$b)
    } else {
        rownames(res) <- paste("X", 1:x$p, sep = "")
    }
    colnames(res) <- "Estimated direction"

    cat("\nResults of EDR directions estimation:\n")
    cat("\n")
    prmatrix(signif(res, 3))
    cat("\n")
}

Try the SIRthresholded package in your browser

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

SIRthresholded documentation built on July 10, 2023, 2:03 a.m.