| shk_vs_catcov | R Documentation |
Mirrors eta_vs_catcov(), but for the per-individual shrinkage
contribution diagnostic (shk type columns, see
derive_shk()/backfill_shk()) instead of the etas themselves.
shk_vs_catcov(
xpdb,
mapping = NULL,
shkvar = NULL,
covvar = NULL,
drop_fixed = TRUE,
orientation = "x",
show_n = check_xpdb_x(xpdb, .warn = FALSE),
type = "bol",
list = TRUE,
title = "Shrinkage contribution versus categorical covariates | @run",
subtitle = "Based on @nind individuals",
caption = "@dir",
tag = NULL,
facets,
.problem,
quiet,
...
)
xpdb |
< |
mapping |
|
shkvar |
|
covvar |
|
drop_fixed |
As in |
orientation |
Passed to |
show_n |
Add "N=" to plot |
type |
Passed to |
list |
< |
title |
Plot title |
subtitle |
Plot subtitle |
caption |
Plot caption |
tag |
Plot tag |
facets |
Additional facets |
.problem |
Problem number |
quiet |
Silence output |
... |
Any additional aesthetics. |
The desired plot, or (when shkvar resolves to more than one
shk column and list = TRUE) a plain list of one plot per column.
xpdb_x %>%
backfill_shk() %>%
shk_vs_catcov()
# Combine all shk columns onto one shared, faceted plot instead of a list
xpdb_x %>%
backfill_shk() %>%
shk_vs_catcov(list = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.