mcmclist_samples: Internal function to get samples.

Description Usage Arguments

View source: R/mcpfit_methods.R

Description

Returns posterior samples, if available. If not, then prior samples. If not, then throw an informative error. This is useful for summary and plotting, that works on both.

Usage

1
mcmclist_samples(fit, prior = FALSE, message = TRUE, error = TRUE)

Arguments

fit

An mcpfit object

prior

TRUE/FALSE. Summarise prior instead of posterior?

message

TRUE: gives a message if returning prior samples. FALSE = no message

error

TRUE: err if there are no samples. FALSE: return NULL


mcp documentation built on Aug. 3, 2020, 5:07 p.m.