Skip to content

Commit

Permalink
Sadsdsfsdfs
Browse files Browse the repository at this point in the history
  • Loading branch information
svmiller committed Jan 11, 2024
1 parent 2032594 commit 2f3b46e
Show file tree
Hide file tree
Showing 8 changed files with 110 additions and 19 deletions.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
Additions include:

- `DCE12`: a data set on domestic conflict events in 2012, useful for teaching about regression of count data.
- `EBJ`: a data set on the economic benefits of post-conflict justice institutions.

Updates include:

- `DJIA` has more recent data and fixes an unfortunate gap from 1985 to 1992.
- Assorted documentation updates.

# stevedata 1.1.0

Expand Down
26 changes: 17 additions & 9 deletions R/rd-DCE12.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ NULL
#' \item{\code{assassinations}}{the count of assassinations in 2012}
#' \item{\code{strikes}}{the count of general strikes in 2012}
#' \item{\code{guerwar}}{the count of guerilla warfare events in 2012}
#' \item{\code{gvotcrises}}{the count of government crises in 2012}
#' \item{\code{govtcrises}}{the count of government crises in 2012}
#' \item{\code{purges}}{the count of purges in 2012}
#' \item{\code{riots}}{the count of riots in 2012}
#' \item{\code{revolutions}}{the count of revolutions in 2012}
Expand All @@ -37,13 +37,21 @@ NULL
#' important question of real-world inference.
#'
#' Data on the democracy estimate and tertiary school enrollment rate come from
#' the Varieties of Democracy project. Population estimates come from the UN
#' Population Division. GDP per capita comes from the World Bank. The estimate
#' of land area (in square kilometers) come from the CNTS. Country name comes
#' from CNTS as well.
#'
#' Democracy estimate for Palestine comes as a simple average of the two
#' Palestinian territories collected by the Varieties of Democracy project.
#' These are West Bank and Gaza.
#' the Varieties of Democracy project. Democracy estimate for Palestine comes as
#' a simple average of the two Palestinian territories collected by the
#' Varieties of Democracy project. These are West Bank and Gaza. The tertiary
#' school enrollment variable, which originally comes from a data project by
#' Barro and Lee (2013), is "filled" to the referent year from the most recent
#' year available in the data. That would be 2010. It's fine for this purpose.
#'
#' Population estimates come from the UN Population Division. GDP per capita
#' comes from the World Bank. The estimate of land area (in square kilometers)
#' comes from the CNTS. Country name comes from CNTS as well.
#'
#' In all but the case of the data from CNTS, and the "filled" case of the
#' tertiary school enrollment variable, the referent year for the data is 2011.
#' Not that anyone is going to care too much for a simple data set like this,
#' but this would be the ol' endogeneity concern.
#'
#'
"DCE12"
35 changes: 35 additions & 0 deletions R/rd-EBJ.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#' @importFrom tibble tibble
NULL

#' The Economic Benefits of Justice
#'
#' A data set on the apparent economic benefits of post-conflict justice
#'
#' @format A data frame with 95 observations on the following 12 variables.
#' \describe{
#' \item{\code{testnewid_lag}}{an apparent identifier variable, of some description}
#' \item{\code{ccode}}{a Correlates of War(?) state code for the location of a conflict}
#' \item{\code{id}}{an apparent identifier variable, of some description}
#' \item{\code{pcj}}{a dummy variable for whether there was some kind of post-conflict justice institution created after a conflict}
#' \item{\code{fdi}}{a variable on net FDI inflows over a 10-year period after a conflict (in millions USD)}
#' \item{\code{econ_size}}{GDP, as an estimate of economic size}
#' \item{\code{econ_devel}}{GDP per capita, as an estimate of economic development}
#' \item{\code{kaopen}}{KAOPEN index score, as an estimate of capital openness}
#' \item{\code{xr}}{exchange rate fluctuations, as an indicator of exchange rate instability}
#' \item{\code{lifeexp}}{average life expectancy for women, in years}
#' }
#'
#' @details
#'
#' Data are taken Appell and Loyle's (2012) replication data set. Users should
#' read their article in *Journal of Peace Research* for more information about
#' the topic, the stake, and how the data were collected. This is just a simple,
#' reduced form of their data that is minimally sufficient for reproducing the
#' first model of their Table I.
#'
#' @references
#'
#' Appell, Benjamin J. and Cyanne E. Loyle. 2012. "The Economic Benefits of
#' Justice: Post-conflict Justice and Foreign Direct Investment" 49(5): 685--99.
#'
"EBJ"
2 changes: 1 addition & 1 deletion R/rd-OODTPT.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ NULL
#' \item{\code{corecov}}{the core non-tariff barrier coverage ratio}
#' \item{\code{qualcov}}{the quality non-tariff barrier coverate ratio}
#' \item{\code{polity}}{the familiar [-10,10] Polity measure of democracy}
#' \item{\code{iec}}{the index of electorcal competitiveness from the World Bank}
#' \item{\code{iec}}{the index of electoral competitiveness from the World Bank}
#' \item{\code{lngdppc}}{real GDP per capita in 1995 dollars}
#' \item{\code{lngdp}}{real GDP in 1995 dollars}
#' \item{\code{lnexpgdp}}{export dependence (i.e. export/GDP ratio)}
Expand Down
Binary file added data/EBJ.rda
Binary file not shown.
23 changes: 15 additions & 8 deletions man/DCE12.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 39 additions & 0 deletions man/EBJ.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/OODTPT.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2f3b46e

Please sign in to comment.