zmjones / eeesr Goto Github PK
View Code? Open in Web Editor NEW"An Empirical Evaluation of Explanations for State Repression"
Home Page: http://zmjones.com/eeesr/
"An Empirical Evaluation of Explanations for State Repression"
Home Page: http://zmjones.com/eeesr/
I might be doing things wrong, but I get this issue with the code:
> source("data.R")
> source("imp.R")
> source("mi.R")
> source("setup.R")
> source("all.R")
Error in `$<-.data.frame`(`*tmp*`, "spec", value = c("log INGOs", "Polity", :
replacement has 31 rows, data has 30
> traceback()
12: stop(sprintf(ngettext(N, "replacement has %d row, data has %d",
"replacement has %d rows, data has %d"), N, nrows), domain = NA)
11: `$<-.data.frame`(`*tmp*`, "spec", value = c("log INGOs", "Polity",
"Executive Compet.", "Executive Open.", "Executive Const.", "Participation Compet.",
"Judicial Indep.", "log Oil Rents", "Military Regime", "Left Executive",
"log Trade/GDP", "FDI", "Public Trial", "Fair Trial", "Court Decision Final",
"Legislative Approval", "WB/IMF Structural Adj.", "IMF Structural Adj.",
"WB Structural Adj.", "British Colony", "Common Law", "PTA w/ HR Clause",
"CAT Ratifier", "CPR Ratifier", "Youth Bulge", "Civil War", "International War",
"AI Press (lag)", "AI Background (lag)", "Western Media (lag)",
"HRO Shaming (lag)")) at all.R#20
10: `$<-`(`*tmp*`, "spec", value = c("log INGOs", "Polity", "Executive Compet.",
"Executive Open.", "Executive Const.", "Participation Compet.",
"Judicial Indep.", "log Oil Rents", "Military Regime", "Left Executive",
"log Trade/GDP", "FDI", "Public Trial", "Fair Trial", "Court Decision Final",
"Legislative Approval", "WB/IMF Structural Adj.", "IMF Structural Adj.",
"WB Structural Adj.", "British Colony", "Common Law", "PTA w/ HR Clause",
"CAT Ratifier", "CPR Ratifier", "Youth Bulge", "Civil War", "International War",
"AI Press (lag)", "AI Background (lag)", "Western Media (lag)",
"HRO Shaming (lag)")) at all.R#20
9: CleanAll(y, ivar.labels) at all.R#34
8: FUN(X[[1L]], ...)
7: lapply(x, function(y) CleanAll(y, ivar.labels)) at all.R#34
6: FUN(X[[1L]], ...)
5: lapply(all, function(x) lapply(x, function(y) CleanAll(y, ivar.labels))) at all.R#34
4: eval(expr, envir, enclos)
3: eval(ei, envir)
2: withVisible(eval(ei, envir))
1: source("all.R")
> sessionInfo()
R version 3.0.1 (2013-05-16)
Platform: x86_64-apple-darwin10.8.0 (64-bit)
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats4 grid splines stats graphics grDevices utils datasets methods base
other attached packages:
[1] mice_2.18 nnet_7.3-6 lattice_0.20-15 multicore_0.1-7 party_1.0-8
[6] vcd_1.2-13 colorspace_1.2-2 MASS_7.3-26 strucchange_1.4-7 sandwich_2.2-10
[11] zoo_1.7-10 coin_1.0-22 mvtnorm_0.9-9995 modeltools_0.2-19 stringr_0.6.2
[16] rms_4.0-0 SparseM_1.03 Hmisc_3.12-2 Formula_1.1-1 survival_2.37-4
[21] foreign_0.8-54 countrycode_0.16 plyr_1.8
loaded via a namespace (and not attached):
[1] cluster_1.14.4 rpart_4.1-1 tools_3.0.1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.