--- title: "Introduction" output: rmarkdown::html_vignette vignette: > %\VignetteIndexEntry{Introduction} %\VignetteEngine{knitr::rmarkdown} %\VignetteEncoding{UTF-8} --- ```{r, include = FALSE} knitr::opts_chunk$set( collapse = TRUE, comment = "#>" ) ``` ## Draws from the prior distribution ```{r prior, eval=FALSE} library(vizdraws) vizdraws(prior = 'normal(0.05, 0.2)') ```
## Updating the prior ```{r posterior, eval=FALSE} vizdraws(prior = 'normal(0.05, 0.2)', posterior = rnorm(n = 10000, mean = 0.3, sd = 0.5)) ```
## Minimum meaningful effect ```{r mme, eval=FALSE} vizdraws(prior = rnorm(n = 10000, mean = 0, sd = 1), posterior = rnorm(n = 10000, mean = 0.3, sd = 0.5), xlim = c(-3,3), MME = 0.1) ```