vb_summary {blocs} | R Documentation |
Summarize uncertainty for a vbdf objects
Description
Summarize uncertainty for a vbdf objects. Analysis must have run with bootstrap iterations.
vb_uncertainty
is just an alias for vb_summary
.
Usage
vb_summary(
object,
type = c("discrete", "continuous", "binned"),
estimates = grep("prob|pr_turnout|pr_votedem|pr_voterep|cond_rep|net_rep",
names(object), value = TRUE),
na.rm = FALSE,
funcs = c("mean", "median", "low", "high"),
low_ci = 0.025,
high_ci = 0.975,
bin_col,
tolerance = sqrt(.Machine$double.eps)
)
vb_uncertainty(
object,
type = c("discrete", "continuous", "binned"),
estimates = grep("prob|pr_turnout|pr_votedem|pr_voterep|cond_rep|net_rep",
names(object), value = TRUE),
na.rm = FALSE,
funcs = c("mean", "median", "low", "high"),
low_ci = 0.025,
high_ci = 0.975,
bin_col,
tolerance = sqrt(.Machine$double.eps)
)
Arguments
object |
a |
type |
a string naming the type of independent variable summary. Use
|
estimates |
character vector naming columns for which to calculate uncertainty estimates. |
na.rm |
logical indicating whether to remove |
funcs |
character vector of summary functions to apply to
|
low_ci |
numeric. If you include the string |
high_ci |
numeric. If you include the string |
bin_col |
character vector naming the column(s) that define the bins. Used only when |
tolerance |
tolerance used when checking range of probability estimates |
Value
A summary object with additional columns for each combination
of estimates
and funcs
.