View source: R/coef.BayesSUR.R
coef.BayesSUR | R Documentation |
BayesSUR
Extract the posterior mean of the coefficients of a BayesSUR
class object
## S3 method for class 'BayesSUR'
coef(object, beta.type = "marginal", Pmax = 0, ...)
object |
an object of class |
beta.type |
type of output beta. Default is |
Pmax |
If |
... |
other arguments |
Estimated coefficients are from an object of class BayesSUR
.
If the BayesSUR
specified data standardization, the fitted values
are base based on standardized data.
data("exampleQTL", 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/"
)
## check prediction
beta.hat <- coef(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.