explore_mod_ll: Explore (pre-) and (post-) results from 'make_mod_res' after...

View source: R/explore_mod_II.R

explore_mod_llR Documentation

Explore (pre-) and (post-) results from make_mod_res after make_ll_model

Description

General workflow is make the model (make_ll_model), make the model results (make_mod_res) then explore results (explore_mod_ll). Might work for other rstanarm models? Not sure anymore.

Usage

explore_mod_ll(
  model_results,
  plot_title = NULL,
  max_levels = 15,
  recent = as.numeric(format(Sys.Date(), "%Y")) - 2,
  limit_preds = TRUE,
  plot_draws = 500,
  diff_direction = c("positive", "negative"),
  diff_category = NULL,
  facet_col = cat_col,
  dot_col = cov_col,
  do_gc = TRUE
)

Arguments

model_results

List. results from make_ll_model()

plot_title

Character. Title used on all plots.

diff_category

Character name of column in original data to condition on. If left as NULL will default to cat_col if there is more than one level, or new category all if there in not. Useful to condition on random_col if desired.

dot_col

Character name of column in original data to colour the original data points by in model results plots. Default is the secondary x variable cov_col.

do_gc

Acanthiza/envTrend documentation built on Nov. 16, 2023, 4:24 p.m.