Reshape a wide data.frame of iterations (such as posterior draws or bootsrapped samples) as columns to long format. Instead of having all iterations as columns (e.g.,
iter_1, iter_2, ...), will return 3 columns with the
\*_index (the previous index of the row), the
\*_group (the iteration number) and the
\*_value (the value of said iteration).
1 2 3
A data.frame containing posterior draws obtained from
The prefix of the draws (for instance,
Data frame of reshaped draws in long format.
1 2 3 4 5 6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.