Converts the MCMC chain output of run_mcmc to data.frame.
# S3 method for mcmc_output
as.data.frame(
x,
row.names,
optional,
variable = c("theta", "states"),
times,
states,
expand = !(x$mcmc_type %in% paste0("is", 1:3)),
...
)Output from run_mcmc.
Ignored.
Ignored.
Return samples of "theta" (default) or "states"?
Vector of indices. In case of states, what time points to expand? Default is all.
Vector of indices. In case of states, what states to expand? Default is all.
Should the jump-chain be expanded?
Defaults to TRUE for non-IS-MCMC, and FALSE for IS-MCMC.
For expand = FALSE and always for IS-MCMC,
the resulting data.frame contains variable weight (= counts times IS-weights).
Ignored.