Use these set of functions to calculates the ErrVarNorm consistency metric for each respondent based on their responses in a MaxDiff experiment, and create a plot for further diagnostics.
Usage
md_consistency(data)
md_consistency_plot(data, thresholds = seq(0.1, 0.5, 0.1))Arguments
- data
For
md_consistency(): MaxDiff data, output ofmd_parse_data(). Formd_consistency_plot(): individual consistency result, output ofmd_consistency().- thresholds
A numeric vector (within the range 0 - 1) of ErrVarNorm threshold values to be shown as vertical lines on the plot.
Value
md_consistency(): A data frame with columnsidandscore, wherescoreis the normalized consistency metric (ErrVarNorm).md_consistency_plot(): A ggplot object representing the consistency metric plot.
Details
Error Variance Normalized (ErrVarNorm) is a normalized count-based diagnostic measure used to identify random respondents by assessing the consistency of their choices.
ErrVarNorm is calculated by counting the number of times each item is selected as best and worst by each respondent. The difference between these counts is squared and summed for each respondent, then normalized by dividing by the maximum consistency measure across all respondents.
References
Chrzan, K. (2024). Comparing RLH With a New Count-Based Measure for Identifying Random Respondents in MaxDiff Experiments. LinkedIn.
Examples
md_consistency_data <- md_consistency(example_md_parsed_data)
md_consistency_data
#> # A tibble: 213 × 2
#> id score
#> <chr> <dbl>
#> 1 R_0BySpORZ9EPy9mp 0.391
#> 2 R_10TQxH1gIYXisxR 0.812
#> 3 R_129fm9Ak9Gct3hF 0.547
#> 4 R_12FJZrjUPFfhOzi 0.375
#> 5 R_12rmz2fdiNXiGqm 0.656
#> 6 R_1BQ96mlpvzJakZ7 0.422
#> 7 R_1DYhLPKPvOnMC8d 0.188
#> 8 R_1EdsM06YU5j6EZq 0.0469
#> 9 R_1EfWnB3zATPTJve 0.203
#> 10 R_1F3AOVNhTN751VX 0.531
#> # ℹ 203 more rows
md_consistency_plot(md_consistency_data)