Skip to content

unconstrain_draws example does not work with extra variables #982

Open
@avehtari

Description

@avehtari

unconstrain_draws() doc has the following example

fit_mcmc$unconstrain_draws(draws = fit_mcmc$draws())

but this does not work if there are other variables (transformed parameters or generated quantities) stored in the draws, and fails with an error like

Error: Model has 469 unconstrained parameter(s), but 188800 were provided!

It is not trivial to figure out how to proceed after this error

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions