R/print.orlm.R

print.orlm <- function (x, digits = max(3, getOption("digits") - 3), ...) 
{
    cat("\nConstrained linear model:\n")
    if (length(coef(x))) {
        cat("\n\nRestricted model: R2 reduced from", x$orig.R2, "to", x$R2,"\n\n")
        cat("Coefficients:\n")
        print.default(format(coef(x), digits = digits), print.gap = 2, 
            quote = FALSE)
    }
    else cat("No coefficients\n")
    cat("\n")
    invisible(x)
}

Try the ic.infer package in your browser

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

ic.infer documentation built on Oct. 5, 2023, 5:09 p.m.