Extract rater info from a UD model in a tidy format.

raterinfo(model)

Arguments

model

A mirt::SingleGroupClass model of the democracy scores.

Value

A data frame with rater information for each democracy index over the range of the latent variable theta.

Examples

# \donttest{
# Replicate the official UDS scores (2011 release)
library(dplyr)
library(mirt)
democracy_data <- generate_democracy_scores_dataset(selection = "_pmm", output_format = "wide")
#> Adding fh_pmm data
#> Adding polity_pmm data
#> Adding Arat data
#> Adding blm_pmm data
#> Adding Bollen data
#> Adding Hadenius data
#> Adding mainwaring_pmm data
#> Adding Munck data
#> Adding pacl_pmm data
#> Adding polyarchy_pmm data
#> Adding prc_pmm data
#> Adding Vanhanen_pmm data
#> Finalizing

democracy_data <- prepare_democracy_data(democracy_data)

replication_2011_model <- mirt(democracy_data %>% select(matches("pmm")),
model = 1,
itemtype = "graded",
SE = TRUE, verbose = FALSE)

raterinfo(replication_2011_model)# }
#> # A tibble: 732 × 3
#>    rater    theta       info
#>    <chr>    <dbl>      <dbl>
#>  1 pmm_arat  -6   0.00000122
#>  2 pmm_arat  -5.8 0.00000247
#>  3 pmm_arat  -5.6 0.00000501
#>  4 pmm_arat  -5.4 0.0000102 
#>  5 pmm_arat  -5.2 0.0000206 
#>  6 pmm_arat  -5   0.0000418 
#>  7 pmm_arat  -4.8 0.0000847 
#>  8 pmm_arat  -4.6 0.000172  
#>  9 pmm_arat  -4.4 0.000349  
#> 10 pmm_arat  -4.2 0.000707  
#> # ℹ 722 more rows