coef.BayesSUR

0th

Percentile

extract the posterior mean of the coefficients of a "BayesSUR" class object

Extract the posterior mean of the coefficients of a "BayesSUR" class object

Usage
# S3 method for BayesSUR
coef(object, Pmax = 0, ...)
Arguments
object

an object of class "BayesSUR"

Pmax

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

...

other arguments

Value

Estimated coefficients are from an object of class "BayesSUR". If the BayesSUR specified data standardization, the fitted values are base based on standardized data.

Aliases
  • coef.BayesSUR
Examples
# 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/" )

## check prediction
beta.hat <- coef(fit)

# }
Documentation reproduced from package BayesSUR, version 1.1-2, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.