Description Usage Arguments Value Author(s) References See Also
Performs Ordered Optimal Classification (OOC) with flexible strategies of estimation. OOC is an extension of Poole's (2000) nonparametric unfolding procedure for the analysis of ordinal choice data (e.g., “Strongly Agree,” “Somewhat Agree,” “Somewhat Disagree,” “Strongly Disagree”).
1 2 3 4 5 6 7 8 9 10 11 12 |
votemat |
A matrix of ordinal choice data, must be consecutive integers starting with 1. Binary choice should be coded so that 1 = Support, 2 = Oppose. Missing data must be coded as NA. |
dims |
Number of dimensions to estimate. |
minvotes |
Minimum number of votes required for a respondent to be included in the analysis. |
lop |
A proportion between 0 and 1, the cut-off used for excluding lopsided votes. |
polarity |
A vector specifying the row number of the respondent(s) constrained to have a positive (i.e., right-wing or conservative) score on each dimension. |
iter |
Number of iterations of the modified Optimal Classification algorithm. |
nv.method |
The method used to compute normal vectors at each step
of the iteration. Current choices include:
|
binary.method |
The method used to transform ordinal responses to binary ones. Following options are currently available:
|
random.seed |
If not |
... |
Additional arguments passed to the function assigned
by |
An oocflexObject
with the following elements
respondents
: A matrix containing the respondent estimates.
issues
: A matrix containing the estimates for the (c-1) categories of each issue.
issues.unique
: A matrix containing only the estimates for the unique issues.
fits
: The percentage of all binary choices correctly predicted,
the Aggregate Proportional Reduction in Error (APRE) statistic for the binary choices,
the percentage of all ordinal choices correctly predicted,
and the Aggregate Proportional Reduction in Error (APRE) statistic for
the ordinal choices.
OC.result.binary
: Standard (binary) OC results
for the choice matrix arranged in a binary dominance pattern.
errorcount
: Error counts at each iteration of the Optimal Classification algorithm.
votemat.binary
: The matrix of ordinal choices recoded into binary categories
that are as balanced as possible.
Tzu-Ping Liu jamesliu0222@gmail.com, Gento Kato gento.badger@gmail.com, and Sam Fuller sjfuller@ucdavis.edu.
This code is the modified version of the ooc
function written by Christopher Hare and Keith T. Poole.
Hare, C., Liu, T., & Lupton, R. N. 2018. "What Ordered Optimal Classification Reveals about Ideological Structure, Cleavages, and Polarization in the American Mass Public", Public Choice, 176, 57-78.
Armstrong, David A., Ryan Bakker, Royce Carroll, Christopher Hare, Keith T. Poole, and Howard Rosenthal. 2014. Analyzing Spatial Models of Choice and Judgment with R. Boca Raton, FL: CRC Press.
Poole, Keith T. 2000. "Nonparametric unfolding of BInary Choice Data." Political Analysis 8(e): 211-237.
compute.nv
, nv.svm
, and nv.krls
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.