Learn R Programming

capr (version 0.2.0)

print.capr.boot: Print method for capr.boot objects

Description

Displays bootstrap coefficient estimates and their confidence intervals component by component as compact tables.

Usage

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

Value

The input object x, invisibly.

Arguments

x

An object of class capr.boot, typically produced by capr.boot().

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
)
fit.boot <- capr.boot(
    fit = fit,
    nboot = 10L,
    max_iter = 20L,
    tol = 1e-6,
    seed = 123L
)
print(fit.boot)

Run the code above in your browser using DataLab