mcp package — mcpfit-class" />
Models fitted with the mcp
function are represented as
an mcpfit
object which contains the user input (model, data, family),
derived model characteristics (prior, parameter names, and jags code), and
the fit (prior and/or posterior mcmc samples).
See methods(class = "mcpfit")
for an overview of available methods.
User-provided information (see mcp
for more details):
model
A list of formulas, making up the model.
Provided by user. See mcp
for more details.
data
A data frame.
Provided by user. See mcp
for more details.
family
An mcpfamily
object.
Provided by user. See mcp
for more details.
prior
A named list.
Provided by user. See mcp
for more details.
mcmc_post
An mcmc.list
object with posterior samples.
mcmc_prior
An mcmc.list
object with prior samples.
mcmc_loglik
An mcmc.list
object with samples of log-likelihood.
pars
A list of character vectors of model parameter names.
jags_code
A string with jags code. Use cat(fit$jags_code)
to show it.
simulate
A method to simulate and predict data.
.other
Information that is used internally by mcp.