cutpoints: Extract cutpoints from a UD model in a tidy format.

Description Usage Arguments Value Examples

Description

This function takes a model of the democracy scores and extracts the discrimination parameters, score cutpoints, and standard errors for all the variables involved, putting these into a tidy data frame.

Usage

1
cutpoints(model, type = "score")

Arguments

model

A mirt SingleGroupClass-class model of the democracy scores.

type

A string specifying the cutpoint type. Can be (an abbreviation of) "score" (for score cutpoints) or "discrimination" (for discrimination parameters). Default is "score."

Value

A tibble with either score cutpoints for each variable used to construct the latent scores in terms of the latent variable (the default), or discrimination parameters for each variable used to construct the index. For the score cutpoints (type = 'score'), the columns estimate, pct975, and pct025 report the IRT parametrization of the model estimates, a normalized measure in the same scale as the latent variable.

Examples

1
2
3
# Replicate the official UDS 2011 release and calculate its cutpoints
replication_2011_model <- democracy_model(dplyr::matches("pmm"), verbose = FALSE)
cutpoints(replication_2011_model)

xmarquez/QuickUDS documentation built on May 4, 2019, 1:24 p.m.