demsup_data {DCPO} | R Documentation |
Support for Democracy in 51 Survey Datasets
Description
A dataset containing the prices and other attributes of almost 54,000 diamonds.
Usage
demsup_data
Format
A list of 15 elements
- K
an integer, the total number of countries in the data
- T
an integer, the total number of years in the data
- Q
an integer, the total number of distinct survey questions in the data
- R
an integer, the maximum number of response cutpoints in any survey question in the data
- N
an integer, the number of KTQR observations
- kk
a numeric vector of length N, the country of each observation
- tt
a numeric vector of length N, the year of each observation
a numeric vector of length N, the question of each observation
- rr
a numeric vector of length N, the response cutpoint of each observation
- y_r
a numeric vector of length N, the number of respondents who provided a response above the relevant cutpoint for each observation
- n_r
a numeric vector of length N, the total number of respondents for each observation
- fixed_cutp
a QxR matrix, a truth table indicating the question-cutpoint to be fixed at difficulty .5
- use_delta
a QxK tibble, a truth table indicating whether item difficulty should be estimated to vary by question-country to account for potential item-response bias
- data
an Nx14 tibble, the aggregate survey response dataset in its original format
- data_args
a list of length 3, indicating the arguments passed to DCPOtools::format_dcpo to generate demsup_data from demsup_data$data
Details
Data on aggregate support for democracy reported in 51 survey datasets in 998 country-years, formatted for use with the functions of the DCPO package
Source
demsup_data replicates the data employed in Claassen, Christopher. 2019. "Estimating Smooth Country-Year Panels of Public Opinion." Political Analysis 27(1):1-20. See https://github.com/fsolt/DCPOtools.