func_MCMC | R Documentation |
This an internal function for MCMC sampling
func_MCMC(
survObj,
hyperpar,
ini,
nIter,
thin,
burnin,
S,
method,
MRF_2b,
MRF_G,
output_graph_para,
verbose,
cpp = FALSE
)
survObj |
a list containing observed data from |
hyperpar |
a list containing prior parameter values |
ini |
a list containing prior parameters' initial values |
nIter |
the number of iterations of the chain |
thin |
thinning MCMC intermediate results to be stored |
burnin |
number of iterations to discard at the start of the chain. Default is 0 |
S |
the number of subgroups |
method |
a method option from
|
MRF_2b |
two different b in MRF prior for subgraphs G_ss and G_rs |
MRF_G |
logical value. |
output_graph_para |
allow ( |
verbose |
logical value to display the progress of MCMC |
cpp |
logical, whether to use C++ code for faster computation |
A list object saving the MCMC results with components including 'gamma.p', 'beta.p', 'h.p', 'gamma.margin', 'beta.margin', 's', 'eta0', 'kappa0', 'c0', 'pi.ga', 'tau', 'cb', 'accept.RW', 'log.jpost', 'log.like', 'post.gamma'
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.