I think it would be useful to also have an option to get the draws in long format (e.g., for easier plotting or SumStats):
# A draws_df: 1000 iterations, 4 chains, and 3 variables
gender context draw
1 F pol 236
2 F pol 235
3 F pol 235
4 F pol 197
5 F pol 211
6 F pol 164
7 F pol 258
8 F pol 286
9 F pol 215
10 F pol 231
# ... with 15990 more draws
# ... hidden reserved variables {'.chain', '.iteration', '.draw'}
We could add a parameter format with "long" as default (?).
Currently,
extract_cell_draws
returns the draws in wide format:I think it would be useful to also have an option to get the draws in long format (e.g., for easier plotting or SumStats):
We could add a parameter
format
with "long" as default (?).