options(width = 150) knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.align = "center", fig.width = 7, out.width = "80%" )
As of version
rsimsum supports the fully automated creation of nested loop plots (Rücker and Schwarzer, 2014).
A dataset that can be purposefully used to illustrate nested loop plots is bundled and shipped with
data("nlp", package = "rsimsum")
This data set contains the results of a simulation study on survival modelling with 150 distinct data-generating mechanisms:
Further information on the data could be find in the help file (
We can analyse this simulation study using
rsimsum as usual:
s <- rsimsum::simsum( data = nlp, estvarname = "b", true = 0, se = "se", methodvar = "model", by = c("baseline", "ss", "esigma") ) s
Finally, a nested loop plot can be automatically produced via the
autoplot method, e.g. for bias:
library(ggplot2) autoplot(s, type = "nlp", stats = "bias")
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.