makemyprior_gui {makemyprior}R Documentation

Graphical prior construction

Description

This functions opens a shiny app where the specified prior can be seen, and changed.

Usage

makemyprior_gui(prior, guide = FALSE, no_pc = FALSE)

Arguments

prior

An object from make_prior.

guide

Logical, whether to open the guide directly when the app is started. Default is FALSE. The guide can be opened in the app at any time.

no_pc

Turn off computation of the PC prior on splits when using the shiny-app, to avoid slow computations. Upon closing, the PC priors will be computed. Default is FALSE.

Value

Returns an object that can be sent to inference_stan or inference_inla. Can also be sent to makemyprior_gui again.

Examples

## Not run: 

vignette("make_prior", package = "makemyprior")


## End(Not run)

if (interactive()){
   ex_prior <- makemyprior_example_model()
   new_prior <- makemyprior_gui(ex_prior)
}


[Package makemyprior version 1.2.1 Index]