makemyprior_gui: Graphical prior construction

View source: R/make_prior_object_functions.R

makemyprior_guiR 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)
}


makemyprior documentation built on Sept. 11, 2024, 6:56 p.m.