Learn R Programming

capr (version 0.2.0)

print.capr: Print method for CAP regression fits

Description

Formats the coefficient matrix \(\hat{B}\) returned by capr() in a linear-regression style table, showing the estimate for each predictor and component.

Usage

# S3 method for capr
print(x, digits = max(3L, getOption("digits") - 3L), ...)

Value

The input object x, invisibly.

Arguments

x

An object of class capr, typically the result of capr().

digits

Number of significant digits to show when printing numeric values.

...

Additional arguments passed on to print.data.frame().

Examples

Run this code
simu.data <- simu.capr(seed = 123L, n = 120L)
K <- 2L
fit <- capr(
    S = simu.data$S,
    X = simu.data$X,
    K = K
)
print(fit)

Run the code above in your browser using DataLab