plot_res: Plot of data plus model estimates (and credible intervals)

View source: R/plot_results.R

plot_resR Documentation

Plot of data plus model estimates (and credible intervals)

Description

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")
plot_res(mod)

ncahill89/EIVmodels documentation built on Dec. 5, 2022, 2:10 p.m.