|
11 | 11 | #' documentation for various categories of MCMC plots. Currently the MCMC |
12 | 12 | #' plotting functions accept posterior draws provided in one of the following |
13 | 13 | #' formats: |
14 | | -#' * __3-D array__: An array with dimensions `[Iteration, Chain, Parameter]` |
15 | | -#' in that order. |
| 14 | +#' * __3-D array__: An array with dimensions `Iteration, Chain, Parameter` in |
| 15 | +#' that order. |
16 | 16 | #' * __list__: A list of matrices, where each matrix corresponds to a Markov |
17 | | -#' chain. All of the matrices should have the same number of iterations (rows) |
18 | | -#' and parameters (columns), and parameters should have the same names and be |
19 | | -#' in the same order. |
| 17 | +#' chain. All of the matrices should have the same number of iterations (rows) |
| 18 | +#' and parameters (columns), and parameters should have the same names and be in |
| 19 | +#' the same order. |
20 | 20 | #' * __matrix (2-D array)__: A matrix with one column per parameter. If using |
21 | | -#' matrix there should only be a single Markov chain or all chains should |
22 | | -#' already be merged (stacked). |
23 | | -#' * __data frame__: There are two types of [data frames][base::data.frame] |
24 | | -#' allowed. Either a data frame with one column per parameter (if only a single |
25 | | -#' chain or all chains have already been merged), or a data frame with one |
26 | | -#' column per parameter plus an additional column `"Chain"` that contains the |
27 | | -#' chain number (an integer) corresponding to each row in the data frame. |
| 21 | +#' matrix there should only be a single Markov chain or all chains should |
| 22 | +#' already be merged (stacked). |
| 23 | +#' * __data frame__: There are two types of data frames allowed. Either a data |
| 24 | +#' frame with one column per parameter (if only a single chain or all chains |
| 25 | +#' have already been merged), or a data frame with one column per parameter plus |
| 26 | +#' an additional column `"Chain"` that contains the chain number (an integer) |
| 27 | +#' corresponding to each row in the data frame. |
28 | 28 | #' |
29 | 29 | #' __Note__: typically the user should *not* include warmup iterations |
30 | 30 | #' in the object passed to **bayesplot** plotting functions, although for |
31 | 31 | #' certain plots (e.g. trace plots) it can occasionally be useful to include the |
32 | 32 | #' warmup iterations for diagnostic purposes. |
33 | 33 | #' |
34 | 34 | #' @section MCMC plotting functions: |
35 | | -#' * [__Posterior distributions__][MCMC-distributions]: |
| 35 | +#' |
| 36 | +#' * [Posterior distributions][MCMC-distributions]: |
36 | 37 | #' Histograms and kernel density plots of parameter draws, optionally |
37 | 38 | #' showing each Markov chain separately. |
38 | | -#' * [__Uncertainty intervals__][MCMC-intervals]: Uncertainty intervals computed |
| 39 | +#' * [Uncertainty intervals][MCMC-intervals]: Uncertainty intervals computed |
39 | 40 | #' from parameter draws. |
40 | | -#' * [__Trace plots__][MCMC-traces]: Times series of parameter draws, optionally |
| 41 | +#' * [Trace plots][MCMC-traces]: Times series of parameter draws, optionally |
41 | 42 | #' including HMC/NUTS diagnostic information. |
42 | | -#' * [__Scatterplots__][MCMC-scatterplots]: Scatterplots, heatmaps, and pairs |
| 43 | +#' * [Scatterplots][MCMC-scatterplots]: Scatterplots, heatmaps, and pairs |
43 | 44 | #' plots of parameter draws, optionally including HMC/NUTS diagnostic |
44 | 45 | #' information. |
45 | | -#' * [__Parallel coordinates plots__][MCMC-parcoord]: Parallel coordinates plot |
| 46 | +#' * [Parallel coordinates plots][MCMC-parcoord]: Parallel coordinates plot |
46 | 47 | #' of MCMC draws (one dimension per parameter), optionally including |
47 | 48 | #' HMC/NUTS diagnostic information. |
48 | | -#' * [__Combos__][MCMC-combos]: Combination plots (e.g. trace plot + histogram). |
49 | | -#' * [__General MCMC diagnostics__][MCMC-diagnostics]: MCMC diagnostic plots |
| 49 | +#' * [Combos][MCMC-combos]: Combination plots (e.g. trace plot + histogram). |
| 50 | +#' * [General MCMC diagnostics][MCMC-diagnostics]: MCMC diagnostic plots |
50 | 51 | #' including R-hat, effective sample size, autocorrelation. |
51 | | -#' [__NUTS diagnostics__][MCMC-nuts]: Special diagnostic plots for |
| 52 | +#' [NUTS diagnostics][MCMC-nuts]: Special diagnostic plots for |
52 | 53 | #' the No-U-Turn Sampler. |
53 | | -#' * [__Comparisons to "true" values__][MCMC-recover]: Plots comparing MCMC |
| 54 | +#' * [Comparisons to "true" values][MCMC-recover]: Plots comparing MCMC |
54 | 55 | #' estimates to "true" parameter values (e.g., values used to simulate data). |
55 | 56 | #' |
56 | 57 | #' @template reference-vis-paper |
|
0 commit comments