Skip to content
/ ooc Public

This is a repository for the project of "Ordered Optimal Classification"

License

Notifications You must be signed in to change notification settings

tzuliu/ooc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OOC: Ordered Optimal Classification

Build Status license Github All Releases GitHub Release

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.

About

This is a repository for the project of "Ordered Optimal Classification"

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published