Description Usage Arguments Value Examples
Generate a data frame with the limits of two credible intervals. Function used by ggs_caterpillar
. "low" and "high" refer to the wide interval, whereas "Low" and "High" refer to the narrow interval. "median" is self-explanatory and is used to draw a dot in caterpillar plots. The data frame generated is of wide format, suitable for ggplot2::geom_segment().
1 |
D |
Data frame whith the simulations. |
thick_ci |
Vector of length 2 with the quantiles of the thick band for the credible interval |
thin_ci |
Vector of length 2 with the quantiles of the thin band for the credible interval |
A data frame tibble with the Parameter names and 5 variables with the limits of the credibal intervals (thin and thick), ready to be used to produce caterpillar plots.
1 2 |
Loading required package: dplyr
Attaching package: 'dplyr'
The following objects are masked from 'package:stats':
filter, lag
The following objects are masked from 'package:base':
intersect, setdiff, setequal, union
Loading required package: tidyr
Loading required package: ggplot2
# A tibble: 3 x 6
Parameter low Low median High high
* <fctr> <dbl> <dbl> <dbl> <dbl> <dbl>
1 beta[1] 2.244675 2.350889 2.826853 3.304125 3.381859
2 beta[2] 4.853687 4.883265 5.045913 5.211476 5.239212
3 sigma 1.615595 1.682851 1.998729 2.389861 2.496822
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.