Bias-correct the Distribution of Ranking Permutations Using a Paired Anchor Question and Produce De-biased Average Rankings
Source:R/imprr_direct.R
imprr_direct.Rd
This function implements the bias correction of the ranking distribution using a paired anchor question.
Usage
imprr_direct(
data,
J = NULL,
main_q,
anc_correct,
n_bootstrap = 200,
seed = 123456,
weight = NULL,
verbose = FALSE
)
Arguments
- data
The input dataset with ranking data.
- J
The number of items in the ranking question. Defaults to NULL, in which case it will be inferred from the data.
- main_q
Column name for the main ranking question to be analyzed.
- anc_correct
Indicator for passing the anchor question.
- n_bootstrap
Number of bootstraps. Defaults to 200.
- seed
Seed for
set.seed
for reproducibility.- weight
A vector of weights. Defaults to NULL.
- verbose
Indicator for verbose output. Defaults to FALSE.