make_mod_res | R Documentation |
make_ll_model
Should now be generic enough to
make_mod_res(
mod_file,
ref = -20,
pred_step = 1,
include_random = FALSE,
new_level = "State",
cov_q = NULL,
cov_val = NULL,
res_q = c(0.1, 0.5, 0.9),
ps_thresh = 0.05,
keep_mod = TRUE,
keep_pred = TRUE,
do_gc = TRUE,
...
)
mod_file |
Character. Path to saved results from |
ref |
Character or numeric. One of: a single level of |
pred_step |
Numeric. What step (in units of |
include_random |
Logical. If there is a random effect in the original
model, should the levels of that random effect be conditioned on? If not,
provide |
new_level |
Character. Name to assign to hypothetical new group. |
cov_q |
Numeric. What quantiles of |
cov_val |
Numeric. Alternative to cov_q. What value of |
res_q |
Numeric. What quantiles to summarise predictions at? |
ps_thresh |
Numeric value used in the |
keep_mod |
Logical. Return |
keep_pred |
Logical. Return |
do_gc |
Logical. Run |
... |
Passed to |
A list with components
data frame of list length quantiles in original data
data frame of original data retrieved from mod$data
data frame of predictions (via
tidybayes::add_epred_draws()
), including a diff
column of the
difference between ref
erence and each pred_step
from the minimum of
var_col
to the maximum of var_col
data frame of predictions summarised, including columns for
each of res_q
(applied to the differences between ref
and rec
)
nrow(mod$data)
length(mod$coefficients[!grepl("b\\[", names(mod$coefficients))])
length(mod$coefficients[grepl("b\\[", names(mod$coefficients))])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.