Description Usage Arguments Value Examples
Compute, print posterior means and posterior P(odds ratio < 1) for the individual study parameters and hyperparameters of the model.
1 | describe.post(mcout,burnin=1000)
|
mcout |
is a list. Each item in the list is a matrix of MCMC
output, corresponding to different values of M, the precision
parameter of the Dirichlet model. If the matrices are output
from |
burnin |
is the number of initial chains to omit from the estimates. |
List with two named components, means.table and probs.table, returned invisibly.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | ## Not run:
## Set up the data.
data(breast.17) # the breast cancer dataset
breast.data <- as.matrix(breast.17) # put data in matrix object
## Generate at least two chains, from models which are the same except
## for different \eqn{M} values.
set.seed(1) # initialize the seed at 1
breast.c1 <- dirichlet.c(breast.data, ncycles=4000, M=5)
breast.c2 <- dirichlet.c(breast.data,ncycles=4000, M=1000)
## Create list object.
breast.c1c2 <- list("5"=breast.c1$chain, "1000"= breast.c2$chain)
## Decide on some number of initial runs to omit from the analysis.
describe.post(breast.c1c2, burnin=100)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.