Closed
Description
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.