getSamples {TreeBUGS} | R Documentation |
Get Posterior Samples from Fitted MPT Model
Description
Extracts MCMC posterior samples as an coda::mcmc.list
and relabels the
MCMC variables.
Usage
getSamples(
fittedModel,
parameter = "mean",
select = "all",
names = "par_label"
)
Arguments
fittedModel |
a fitted latent-trait MPT model (see
|
parameter |
which parameter(s) of the (hierarchical) MPT model should be
returned? (see details in |
select |
character vector of parameters to be plotted (e.g., |
names |
whether and how to rename the variables in the MCMC output:
|
Examples
## Not run:
getSamples(fittedModel, "mu", select = c("d", "g"))
## End(Not run)
[Package TreeBUGS version 1.5.0 Index]