GithubHelp home page GithubHelp logo

gevhaz / reputation_and_regime_changes Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nat13sbe/reputation_and_regime_changes

0.0 1.0 0.0 40 KB

Reproducible statistical analysis for my Master's Thesis on the efficacy of Human Rights Treaties

Home Page: https://lup.lub.lu.se/student-papers/record/9006623

License: GNU General Public License v3.0

R 98.29% Rebol 1.71%
data-analysis human-rights open-science political-science

reputation_and_regime_changes's Introduction

Requirements

The R programming environment is required, along with the following packages:

  • gdata
  • tibble
  • lubridate
  • ggplot2

The code depends on having the right datasets available. These are:

How to use

Run the main project file in R:

R project.R

After that, the results of the thesis can be reproduced by calling one of the functions run_pure_regime_change_test() or run_main_test(). For the pure regime change test, only one argument is needed: the test number. It can be 1 or 2. The main test also takes the test number as the first argument but additionally needs to know which treaty to use to divide the regimes into populations of ratifiers and non-ratifiers. This argument should be "CCPR" or "PROTOCOL". There is also a third, optional argument that determines what type of plot will be produced. "BARS" for a bar plot and "HISTOGRAM" for a histogram. An example test would be:

run_main_test(1, "CCPR", "BARS")

which would then show some statistics about the selected sample and produce a stacked bar plot with two groups โ€“ ratifiers and non-ratifiers โ€“ and bar heights depending on the fraction of the sample that saw improvements, decline or no change in their ranking.

reputation_and_regime_changes's People

Contributors

nat13sbe avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.