Not a user-side function. Do not call directly. Exported for infrastructure reasons only.
Usage
tar_jags_df(
fit,
data,
output = c("draws", "summary", "dic"),
variables = NULL,
summaries = NULL,
summary_args = NULL,
transform = NULL
)Arguments
- fit
R2jagsobject.- data
A list, the original JAGS dataset.
- output
Character of length 1 denoting the type of output
tibbleto return:"draws"for MCMC samples (which could take up a lot of space)"summary"for lightweight posterior summary statistics, and"dic"for the overall deviance information criterion and effective number of parameters.- variables
Character vector of model parameter names. The output posterior summaries are restricted to these variables.
- summaries
List of summary functions passed to
...inposterior::summarize_draws()through$summary()on theCmdStanFitobject.- summary_args
List of summary function arguments passed to
.argsinposterior::summarize_draws()through$summary()on theCmdStanFitobject.- transform
Symbol or
NULL, name of a function that accepts argumentsdataanddrawsand returns a data frame. Here,datais the JAGS data list supplied to the model, anddrawsis a data frame with one column per model parameter and one row per posterior sample. Any arguments other thandataanddrawsmust have valid default values becausejagstargetswill not populate them. See the simulation-based calibration discussion thread at https://github.com/ropensci/jagstargets/discussions/31 for an example.