Skip to contents

Plot of data plus model estimates (and credible intervals)

Usage

plot_res(mod1, mod2 = NULL, add_truth = FALSE)

Arguments

mod1

The fitted model from run_mod

mod2

An optional second fitted model from run_mod for comparison

add_truth

Logical argument to add the "True" data generating process to the plot. This should only be set to True when using simulated data from sim_dat

Value

p

Examples

dat <- sim_slr(n_sim = 30)
mod <- run_mod(dat, model = "slr")
#> Compiling model graph
#>    Resolving undeclared variables
#>    Allocating nodes
#> Graph information:
#>    Observed stochastic nodes: 60
#>    Unobserved stochastic nodes: 33
#>    Total graph size: 380
#> 
#> Initializing model
#> 
#> No convergence issues detected
plot_res(mod)