Learn R Programming

SPQR (version 0.1.0)

print.SPQR: print method for class SPQR

Description

Summarizes and print the output produced by SPQR() in an organized way.

Usage

# S3 method for SPQR
print(x, ...)

Arguments

x

An object of class SPQR

...

Arguments passed on to print.summary.SPQR

showModel

If TRUE, prints the detailed NN architecture by layer.

Value

No return value, called for side effects.

Details

This is equivalent to the function call print.summary.SPQR(summary.SPQR(object), ...).

Examples

Run this code
# NOT RUN {
set.seed(919)
n <- 200
X <- rbinom(n, 1, 0.5)
Y <- rnorm(n, X, 0.8)
control <- list(iter = 200, warmup = 150, thin = 1)
fit <- SPQR(X = X, Y = Y, method = "MCMC", control = control,
            normalize = TRUE, verbose = FALSE)
print(fit, showModel = TRUE)
# }

Run the code above in your browser using DataLab