Skip to content

CmdStanMCMC object - add function get_var and get_vars #183

Closed
@mitzimorris

Description

@mitzimorris

For container program variables, i.e., vectors, matrices, and arrays, users need to be able to get the draws for that variable structured accordingly. For scalar variables, this is easy; it is just one column's worth of data and the variable name matches the column name.
For structured variables, we need to assemble all element of the container.

In RStan this is done by the extract function.

The name extract is a poor choice, extract is associated with SQL and there is an extract function in the tidyverse, also in corresponding Python libraries.

Possible names are get_param, get_var or get_variable.

There is a parallel issue on CmdStanPy - stan-dev/cmdstanpy#245.

Let's use this issue to discuss names.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions