print.BayesSUR {BayesSUR} | R Documentation |
print method for class BayesSUR
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 class 'BayesSUR'
print(x, Pmax = 0.5, ...)
Arguments
x |
an object of class |
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
data("exampleEQTL", package = "BayesSUR")
hyperpar <- list(a_w = 2, b_w = 5)
set.seed(9173)
fit <- BayesSUR(
Y = exampleEQTL[["blockList"]][[1]],
X = exampleEQTL[["blockList"]][[2]],
data = exampleEQTL[["data"]], outFilePath = tempdir(),
nIter = 10, burnin = 0, nChains = 1, gammaPrior = "hotspot",
hyperpar = hyperpar, tmpFolder = "tmp/", output_CPO = TRUE
)
## check output
# show the print information
print(fit)
[Package BayesSUR version 2.2-1 Index]