BayesSUR (version 1.1-2)

print.BayesSUR: print a short summary of the Bayesian Seemingly Unrelated Regressions Fits

Description

Print a short summary of a "BayesSUR" class object. It includes the argument matching information, number of selected predictors based on thresholding the posterior mean of the latent indicator variable at 0.5 by default.

Usage

# S3 method for BayesSUR
print(x, Pmax = 0.5, ...)

Arguments

x

an object of class "BayesSUR"

Pmax

threshold that truncates the estimated coefficients based on thresholding the estimated latent indicator variable. Default is 0.5

...

other arguments

Value

Return a short summary from an object of class "BayesSUR", including the number of selected predictors with mPIP>Pmax and the expected log pointwise predictive density estimates (i.e., elpd.LOO and elpd.WAIC).

Examples

Run this code
# NOT RUN {
data("example_eQTL", package = "BayesSUR")
hyperpar = list( a_w = 2 , b_w = 5 )

set.seed(9173)
fit <- BayesSUR(Y = example_eQTL[["blockList"]][[1]], 
                X = example_eQTL[["blockList"]][[2]],
                data = example_eQTL[["data"]], outFilePath = tempdir(),
                nIter = 100, burnin = 50, nChains = 2, gammaPrior = "hotspot",
                hyperpar = hyperpar, tmpFolder = "tmp/", output_CPO=TRUE)

## check output
# show the print information
print(fit)

# }

Run the code above in your browser using DataLab