-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
96 lines (68 loc) · 2.89 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# csppData: The Correlates of State Policy Project Dataset <img src="figures/csppData.png" height="150" align="right"/>
```{r echo=FALSE, results="hide", message=FALSE, warning=F}
library("badger")
```
<!-- badges: start -->
```{r, echo = FALSE, results='asis'}
cat(
badge_cran_release("csppData", "blue")
,badge_cran_download("csppData", "grand-total", "blue")
)
```
<!-- badges: end -->
**csppData** is an R package that contains the Correlates of State Policy data (version 2.5) assembled by Matt Grossmann, Marty P. Jordan, and Josh McCrain. Use the associated [cspp](https://github.com/correlatesstatepolicy/cspp) package to subset the data by states and years, create map + panel visualizations, export citations to common file formats (e.g., .bib), and more. An associated [web application](https://cspp.ippsr.msu.edu/cspp/) that enables easy visualization, manipulation, and exploration of the data is also available.
## The Correlates of State Policy
[The Correlates of State Policy Project](http://ippsr.msu.edu/public-policy/correlates-state-policy) compiles more than 3,000 variables across 50 states (+ DC) from 1900-2020. The variables cover 16 broad categories:
* Demographics and Population
* Economic and Fiscal Policy
* Government
* Elections
* Policy Scores and Public Opinion
* Criminal Justice and the Legal System
* Education
* Healthcare and Health Insurance
* Welfare Policy
* Rights and Anti-Discrimination Protections
* Environment
* Drug and Alcohol Policy
* Gun Control
* Labor
* Transportation
* Regulatory Policy
## Downloading the Package
```{r eval=F}
# Install from CRAN:
install.packages("csppData")
# Install from github (may contain more recent version than the CRAN package)
library(devtools)
install_github("correlatesstatepolicy/csppData")
```
## Loading the CSPP Data
Note that the `cspp` package imports the dataset automatically and provides a number of helpful functions when working with it.
```{r eval=F}
# CSPP codebook
data("codebook")
# CSPP data
data("correlates")
```
# Citation
CSPP Data
> Grossmann, M., Jordan, M. P. and McCrain, J. (2021) “The Correlates of State Policy and the Structure of State Panel Data,” State Politics & Policy Quarterly. Cambridge University Press, pp. 1-21. doi: 10.1017/spq.2021.17.
Package
> Caleb Lucas and Joshua McCrain (2020). csppData: The Correlates of State Policy Project Dataset.
R package version 0.1.4
# Contact
[**Caleb Lucas**](https://caleblucas.com/) - Postdoc, IPPSR, Michigan State University ([Twitter](https://twitter.com/caleblucas)) <br />
[**Josh McCrain**](http://joshuamccrain.com) - Assistant Professor, University of Utah ([Twitter](https://twitter.com/joshmccrain))