ci_mb {rankrate} | R Documentation |
Bootstrap Confidence Intervals for Mallows-Binomial parameters.
Description
This function calculates confidence intervals for parameters in a Mallows-Binomial model using the nonparametric bootstrap.
Usage
ci_mb(
rankings,
ratings,
M,
interval = 0.9,
nsamples = 50,
all = FALSE,
method = "ASTAR"
)
Arguments
rankings |
A matrix of rankings, potentially with attribute "assignments" to signify separate reviewer assignments. One ranking per row. |
ratings |
A matrix of ratings, one row per judge and one column per object. |
M |
Numeric specifying maximum (=worst quality) integer rating. |
interval |
A numeric entry between 0 and 1 specifying the confidence interval (e.g., .90 indicates a 90% confidence interval). Defaults to 0.90. |
nsamples |
A numeric entry indicating desired number of bootstrap samples to be used when calculating confidence intervals. Defaults to 50. |
all |
A boolean indicating if estimated parameters from all bootstrap samples should be returned.
Defaults to |
method |
A character string indicating which estimation method to use when estimating parameters. Allowable options are currently "ASTAR", "Greedy", "GreedyLocal", and "FV". Defaults to exact search, "ASTAR". |
Value
A list with elements ci
, a matrix of confidence intervals for Mallows-Binomial parameters,
ci_ranks
, a matrix of confidence intervals for object ranks, bootstrap_pi0
, a matrix of
bootstrap consensus rankings (returned only if all==TRUE
), and bootstrap_ptheta
, a
matrix of bootstrap estimates of (p,theta) (returned only if all==TRUE
).
Examples
data("ToyData1")
ci_mb(ToyData1$rankings,ToyData1$ratings,ToyData1$M,method="ASTAR",all=TRUE)