OOC: Ordered Optimal Classification
[]()
[]()
This is a repository for the project "OOC: Ordered Optimal Classification"
To install the "ooc" Package in R, first download and load "devtools" as below:
install.packages("devtools", dependencies=TRUE)
library(devtools)
Then install and load the development version from GitHub:
devtools::install_github('tzuliu/ooc')
library(ooc)
Prerequisites:
Mac Users
- Make sure you have already installed Xcode Developer Tools (through App Store).
- Make sure you have installed xcode command line tools through
xcode-select --install
on Terminal.
- (For Xcode higher than 10.X and R higher than 4.X) Make sure to create symlink for all the headers file into this folder,
/usr/local/include/
, through sudo ln -s /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/* /usr/local/include/
.
- Make sure you have downloaded gfortran-8.2 from here and installed on your computer.
- Make sure you add /usr/local/gfortran/bin to your PATH through
export PATH=$PATH:/usr/local/gfortran/bin
.
- Make sure you have installed both
pscl
and OC
in R (due to OC
is the dependency and has been archived by R-CRAN).
- Reference: for creating symlink for headers files, for downloading gfortran-8.2 and adding PATH.
Windows Users
-
Make sure you have already installed RTools.
Paper:
For the final version of the paper "What Ordered Optimal Classification Reveals about Ideological Structure Cleavages and Polarization" and the related/replication codes, please refer to this repository.