This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype HTML> | |
<meta charset = 'utf-8'> | |
<html> | |
<head> | |
<script src='http://code.jquery.com/jquery-1.9.1.min.js' type='text/javascript'></script> | |
<script src='http://code.highcharts.com/highcharts.js' type='text/javascript'></script> | |
<script src='http://code.highcharts.com/highcharts-more.js' type='text/javascript'></script> | |
<style> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype HTML> | |
<meta charset = 'utf-8'> | |
<html> | |
<head> | |
<script src='http://code.jquery.com/jquery-1.9.1.min.js' type='text/javascript'></script> | |
<script src='http://code.highcharts.com/highcharts.js' type='text/javascript'></script> | |
<script src='http://code.highcharts.com/highcharts-more.js' type='text/javascript'></script> | |
<style> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
variable | Question | |
---|---|---|
cowcode | Correlates of War country code (www.correlatesofwar.org). | |
country | Country name. | |
systyear | Year in which the constitutional system was promulgated. | |
systid | Unique identification number for the constitutional system. | |
evntyear | Year of promulgation of the most recent constitutional event. | |
endyear | Year through which the data for the event is guaranteed valid. | |
evntid | Unique identification number for the constitutional event. | |
evnttype | Event type (e.g. amendment, new, etc.). | |
source | What is the source for the text of the Constitution? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CIRI <- read.csv("../Data/CIRI Human Rights Data.csv") | |
codes <- read.csv("../Data/extended codes.csv") | |
names(CIRI)[2] <- "year" | |
CIRI$ccode <- CIRI$COW | |
CIRI <- merge(CIRI,codes,by=c("year","ccode")) | |
names(polity)[2] <- "politycode" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(ggplot2) | |
library(plyr) | |
library(maps) | |
CIRI <- read.csv("../Data/CIRI Human Rights Data.csv") | |
codes <- read.csv("../Data/extended codes.csv") | |
polity <- read.csv("../Data/p4v2011.csv") | |
#uds <- read.csv("../Data/uds_summary.csv") | |
#utip <- read.csv("../Data/EHII2008.csv") | |
pwt <- read.csv("../Data/pwt70_w_country_names.csv") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
uds <- read.csv("../Data/uds_summary.csv") | |
pwt <- read.csv("../Data/pwt70_w_country_names.csv") | |
codes <- read.csv("../Data/codes.csv") | |
require(countrycode) | |
require(plyr) | |
require(ggplot2) | |
codes$isocode <- countrycode(codes$cowcode,"cown","iso3c") | |
names(pwt)[1] <- "countryname.pwt" | |
pwt <- ddply(pwt,.(isocode), transform, cgdpgrowthch = 100*diff(rgdpch)/rgdpch) |