You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.Rmd
+28-9Lines changed: 28 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -17,8 +17,8 @@ knitr::opts_chunk$set(
17
17
warning = FALSE,
18
18
message = FALSE,
19
19
fig.retina = 2,
20
-
fig.align = 'center',
21
-
tidy = 'styler'
20
+
fig.align = "center",
21
+
tidy = "styler"
22
22
)
23
23
```
24
24
@@ -46,7 +46,7 @@ This package includes data from three surveys including the American National El
46
46
47
47
### ANES
48
48
49
-
The ANES data is based on the publicly available 2020 ANES data with additional derived variables and is subset to people who completed both pre and post-election interviews. The ANES Times Series Studies collect data on political polling in the United States and has been conducted since 1948.For more information about the 2020 study, see the [American National Election Studies website](https://electionstudies.org/data-center/2020-time-series-study/). On the ANES website, you can learn more about the study, see codebooks and methodology reports, and download the data (after registering). We received permission to distribute this data for the purpose of the book. Once the package is loaded, you can use the data immediately as follows:
49
+
The ANES data is based on the publicly available 2020 ANES data with additional derived variables and is subset to people who completed both pre and post-election interviews. The ANES Times Series Studies collect data on political polling in the United States and has been conducted since 1948.For more information about the 2020 study, see the [American National Election Studies website](https://electionstudies.org/data-center/2020-time-series-study/). On the ANES website, you can learn more about the study, see codebooks and methodology reports, and download the data (after registering). We received permission to distribute this data for the purpose of the book. Once the package is loaded, you can use the data immediately as follows:
50
50
51
51
```{r}
52
52
#| label: show-anes
@@ -61,7 +61,7 @@ Also, included in the package is a Stata version of the ANES data with a subset
The CHIS data is a subset of variables from the 2023 California Health Interview Survey Adult Public Use File. CHIS is an annual survey of people in households in California with several topics related to [health and social determinants of health](https://healthpolicy.ucla.edu/our-work/california-health-interview-survey-chis/chis-design-and-methods/survey-topics-and-questionnaires). For more information about the study, refer to the [CHIS website](https://healthpolicy.ucla.edu/our-work/california-health-interview-survey-chis). To download a full version of the data with all variables or view codebooks, create an account and [download the public use files](https://healthpolicy.ucla.edu/our-work/public-use-files). See a snippet of the data below:
104
+
105
+
```{r}
106
+
#| label: show-chis
107
+
108
+
head(chis_2023)
109
+
```
110
+
111
+
See `?chis_2023` for more information about the data.
112
+
113
+
101
114
## Examples
102
115
103
116
To analyze the survey data, we recommend using the {srvyr} package as follows:
+ American National Election Studies, 2021. ANES 2020 Time Series Study Full Release [dataset and documentation]. July 19, 2021 version. https://www.electionstudies.org
150
165
166
+
CHIS:
167
+
168
+
+ California Health Interview Survey. CHIS 2023 Adult Public Use Files. [Computer file]. UCLA Center for Health Policy Research, Los Angeles, CA. February 2025 version
169
+
151
170
NCVS:
152
171
153
172
+ United States. Bureau of Justice Statistics. National Crime Victimization Survey, [United States], 2021. Inter-university Consortium for Political and Social Research [distributor], 2022-09-19. https://doi.org/10.3886/ICPSR38429.v1
@@ -160,4 +179,4 @@ and Health: Public use file data users’ guide. https://www.samhsa.gov/data/dat
160
179
RECS:
161
180
162
181
+ U.S. Energy Information Administration, 2024. Residential Energy Consumption 2020 Survey Data. [dataset and documentation]. January 2024 version. https://www.eia.gov/consumption/residential/data/2020/index.php?view=microdata
163
-
+ U.S. Energy Information Administration, 2018 Residential Energy Consumption 2015 Survey Data. [dataset and documentation]. December 2018 version. https://www.eia.gov/consumption/residential/data/2015/index.php?view=microdata
182
+
+ U.S. Energy Information Administration, 2018 Residential Energy Consumption 2015 Survey Data. [dataset and documentation]. December 2018 version. https://www.eia.gov/consumption/residential/data/2015/index.php?view=microdata
0 commit comments