Skip to content

nuts_params.CmdStanMCMC() drops array dimension when selecting a single parameter #534

Description

@utkarshpawade

In R/bayesplot-extractors.R:178, the subsetting arr[,, pars] drops the third dimension when pars has length 1, collapsing the 3D array into a 2D matrix. This breaks reshape2::melt() and downstream code that expects a 3D array.

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