Skip to content

Extractors log_posterior() and nuts_params() don't accept posterior draws objects #540

@utkarshpawade

Description

@utkarshpawade

mcmc_* plotting functions accept posterior::draws_* objects (via prepare_mcmc_array), but the extractors log_posterior() and nuts_params() only dispatch on stanfit, stanreg, CmdStanMCMC, and list.

Users working with draws objects directly (e.g. from cmdstanr::as_draws_array(fit$sampler_diagnostics()) or posterior::as_draws_*()) can't pass them to the extractors, despite these being standard outputs in the Stan ecosystem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions