| prm_contcov | R Documentation |
Computes, for each covariate association declared with
add_cov_association(), the covariate's effect on the associated
parameter (as a ratio to the parameter's typical value, 1 at the
reference covariate value/level) at a handful of representative
evaluation points, with an uncertainty interval propagated from the
effect-size theta's standard error. This is what xplot_forest()
plots; calling these directly is mostly useful for inspecting the
numbers before/without plotting.
prm_contcov() handles continuous covariates (linear, power,
exponential, hockey, or custom associations), evaluated at the
low/reference/high points. prm_catcov() handles categorical
covariates (catshift or custom associations), evaluated at every
observed level. prm_cov() combines both.
prm_contcov(
xpdb,
...,
.problem = NULL,
.subprob = NULL,
.method = NULL,
ci_method = c("simulation", "delta"),
probs = c(0.05, 0.95),
level = 0.95,
nsim = 1000,
keep_draws = FALSE,
quiet
)
prm_catcov(
xpdb,
...,
.problem = NULL,
.subprob = NULL,
.method = NULL,
ci_method = c("simulation", "delta"),
level = 0.95,
nsim = 1000,
keep_draws = FALSE,
quiet
)
prm_cov(
xpdb,
...,
.problem = NULL,
.subprob = NULL,
.method = NULL,
ci_method = c("simulation", "delta"),
probs = c(0.05, 0.95),
level = 0.95,
nsim = 1000,
keep_draws = FALSE,
quiet
)
xpdb |
< |
... |
< |
.problem |
< |
.subprob |
< |
.method |
< |
ci_method |
< |
probs |
< |
level |
< |
nsim |
< |
keep_draws |
< |
quiet |
Silence extra output. |
A prm_cov_tbl tibble with one row per (parameter, covariate,
evaluation point):
param, covariate, covtype, level ("low"/"ref"/"high" for
continuous, the raw category value for categorical), value (the
covariate value/level backing that row), is_ref (TRUE for the
reference row/level – always effect/ci_low/ci_high == 1, by
construction), effect, ci_low, ci_high, ci_method.
add_cov_association(), xplot_forest()
xpdb_x %>%
add_cov_association(TVCL ~ power(CLCR, THETA7, ref = 64)) %>%
prm_contcov()
xpdb_x %>%
add_cov_association(TVCL ~ catshift(SEX, THETA4, ref = 1)) %>%
prm_catcov()
xpdb_x %>%
add_cov_association(
TVCL ~ power(CLCR, THETA7, ref = 64),
TVCL ~ catshift(SEX, THETA4, ref = 1)
) %>%
prm_cov()
# Restrict to one association, and use the analytic delta-method CI
xpdb_x %>%
add_cov_association(
TVCL ~ power(CLCR, THETA7, ref = 64),
TVCL ~ catshift(SEX, THETA4, ref = 1)
) %>%
prm_cov(TVCL ~ CLCR, ci_method = "delta")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.