View source: R/fitted.BayesSUR.R
fitted.BayesSUR | R Documentation |
Return the fitted response values that correspond to the posterior mean
estimates from a BayesSUR
class object.
## S3 method for class 'BayesSUR'
fitted(object, Pmax = 0, beta.type = "marginal", ...)
object |
an object of class |
Pmax |
valid if |
beta.type |
type of estimated beta for the fitted model. Default is
|
... |
other arguments |
Fitted values extracted from an object of class BayesSUR
. If
the BayesSUR
specified data standardization, the fitted values are
base based on standardized data.
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/"
)
## check fitted values
fitted.val <- fitted(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.