API
PosteriorDB.PosteriorDBPosteriorDB.AbstractImplementationPosteriorDB.DatasetPosteriorDB.ModelPosteriorDB.PosteriorPosteriorDB.PosteriorDatabasePosteriorDB.ReferencePosteriorPosteriorDB.StanModelImplementationPosteriorDB.databasePosteriorDB.databasePosteriorDB.datasetPosteriorDB.datasetPosteriorDB.dataset_namesPosteriorDB.implementationPosteriorDB.implementation_namesPosteriorDB.infoPosteriorDB.loadPosteriorDB.loadPosteriorDB.loadPosteriorDB.modelPosteriorDB.modelPosteriorDB.model_namesPosteriorDB.namePosteriorDB.pathPosteriorDB.pathPosteriorDB.pathPosteriorDB.pathPosteriorDB.posteriorPosteriorDB.posterior_namesPosteriorDB.recursive_stackPosteriorDB.reference_posteriorPosteriorDB.reference_posterior
PosteriorDB.PosteriorDB — ModulePosteriorDBFunctionality for working with instances of a posterior database.
See https://github.com/stan-dev/posteriordb for more information.
PosteriorDB.AbstractImplementation — TypeAbstractImplementationAbstract type for implementations of a model.
PosteriorDB.Dataset — TypePosteriorDB.Model — TypePosteriorDB.Posterior — TypePosteriorDB.PosteriorDatabase — TypePosteriorDatabaseA posterior database object using the files at path.
See also: database, posterior_names, model_names, dataset_names
PosteriorDB.ReferencePosterior — TypeReferencePosteriorPointer to a reference posterior in a PosteriorDatabase.
See also: Posterior, reference_posterior, posterior
PosteriorDB.StanModelImplementation — TypePosteriorDB.database — Functiondatabase([path::String]) -> PosteriorDatabaseReturn a pointer to the PosteriorDatabase stored at path.
If path is not given, the default posterior database downloaded from a GitHub release is used.
PosteriorDB.database — Methoddatabase(obj) -> PosteriorDatabaseReturn the database containing obj.
obj can be a Posterior, Model, AbstractImplementation, Dataset, or ReferencePosterior.
PosteriorDB.dataset — Methoddataset(db::PosteriorDatabase, name::String) -> DatasetReturn a dataset object for the dataset with name name in the database db.
PosteriorDB.dataset — Methoddataset(posterior::Posterior) -> DatasetReturn the dataset entry of posterior.
PosteriorDB.dataset_names — Methoddataset_names(db::PosteriorDatabase) -> Vector{String}Return the names of all datasets in the database.
PosteriorDB.implementation — Methodimplementation(model::Model, framework::String) -> AbstractImplementationReturn the implementation of the model for the given framework.
PosteriorDB.implementation_names — Methodimplementation_names(model::Model) -> Vector{String}Return the names of frameworks with code for the model.
PosteriorDB.info — Methodinfo(obj) -> AbstractDictReturn the info dictionary for obj.
obj can be a Posterior, Model, Dataset, or ReferencePosterior.
PosteriorDB.load — Methodload(implementation::AbstractImplementation) -> StringLoad the model implementation and return the code as a string.
PosteriorDB.load — Methodload(dataset::Dataset) -> OrderedDict{String,Any}Load and return the data for dataset.
load(dataset::Dataset, String) -> StringReturn the data for dataset as an unparsed JSON string.
PosteriorDB.load — Methodload(rp::ReferencePosterior) -> Vector{OrderedDict{String,Any}}Load and return the reference draws for the reference posterior rp.
load(rp::ReferencePosterior, String) -> StringReturn the reference draws as an unparsed JSON string.
PosteriorDB.model — Methodmodel(db::PosteriorDatabase, name::String) -> ModelReturn a model object for the model with name name in the database db.
PosteriorDB.model — Methodmodel(posterior::Posterior) -> ModelReturn the model entry of posterior.
PosteriorDB.model_names — Methodmodel_names(db::PosteriorDatabase) -> Vector{String}Return the names of all models in the database.
PosteriorDB.name — Methodname(obj) -> StringReturn the name of obj.
obj can be a Posterior, Model, Dataset, or ReferencePosterior.
PosteriorDB.path — Methodpath(implementation::AbstractImplementation) -> StringAbsolute path to the file containing the model implementation.
PosteriorDB.path — Methodpath(dataset::Dataset) -> StringAbsolute path to the file containing the model dataset.
PosteriorDB.path — Methodpath(db::PosteriorDatabase) -> StringAbsolute path to the database db.
PosteriorDB.path — Methodpath(rp::ReferencePosterior) -> StringReturn the path to the file storing the reference draws for the reference posterior rp.
PosteriorDB.posterior — Methodposterior(db::PosteriorDatabase, name::String) -> PosteriorReturn a posterior object for the posterior with name name in the database db.
PosteriorDB.posterior_names — Methodposterior_names(db::PosteriorDatabase) -> Vector{String}Return the names of all posteriors in the database.
PosteriorDB.recursive_stack — Methodrecursive_stack(x::AbstractArray)If x is an array of arrays, recursively stack into a single array whose dimensions are ordered with dimensions of the innermost container first and outermost last.
PosteriorDB.reference_posterior — Methodreference_posterior(db::PosteriorDatabase, name::String) -> ReferencePosteriorReturn a pointer to the reference posterior with name name in the database db.
PosteriorDB.reference_posterior — Methodreference_posterior(posterior::Posterior) -> Union{Nothing,ReferencePosterior}Return the reference posterior entry of posterior.
If no reference posterior is available, nothing is returned.