knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
library(bmrarm)
The actual simulations took a non-trival amount of time and resulted in large objects. The following code can be used, along with the generated datasets that are stored in the package, to refit those exact models.
Data is generated using the definition of bmrarm with $\rho=0.35$
Data is generated using the definition of bmrarm with $\rho=0$. This can be seen as a bivariate hierachical model with subject specific slopes and intercepts.
Since the simulation studies are not actually replicated in the vignette due to time constraints, we show a minimal working example. This uses the first 5 datasets, but obtains a much smaller number of draws.
Data is generated using the definition of bmrarm with $\rho=0.35$
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.