This is a repository for the project "OOC: Ordered Optimal Classification"
install.packages("devtools", dependencies=TRUE)
library(devtools)
devtools::install_github('tzuliu/ooc')
library(ooc)
- 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/
, throughsudo 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
andOC
in R (due toOC
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.
- Make sure you have already installed RTools.
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.