-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathday-5.html
97 lines (86 loc) · 15.6 KB
/
day-5.html
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
97
<!DOCTYPE html>
<html><head>
<title>Day 5</title>
<base href="./">
<meta id="root-path" root-path="./">
<link rel="icon" sizes="96x96" href="https://publish-01.obsidian.md/access/f786db9fac45774fa4f0d8112e232d67/favicon-96x96.png">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes, minimum-scale=1.0, maximum-scale=5.0">
<meta charset="UTF-8">
<script src="https://code.iconify.design/iconify-icon/1.0.3/iconify-icon.min.js"></script>
<link rel="stylesheet" href="lib/styles/obsidian-styles.css">
<link rel="stylesheet" href="lib/styles/theme.css">
<link rel="stylesheet" href="lib/styles/plugin-styles.css">
<link rel="stylesheet" href="lib/styles/snippets.css">
<style> </style>
<!-- Graph View Data -->
<script>
let nodes=
{"nodeCount":38,"linkCount":45,"radii":[7,7,7,6.4375,6.4375,6.4375,6.081597222222221,6.081597222222221,5.638888888888889,5.638888888888889,5.109375,5.109375,5.109375,4.493055555555555,4.493055555555555,3.7899305555555554,3.7899305555555554,3.7899305555555554,3.7899305555555554,3.7899305555555554,3.7899305555555554,3.7899305555555554,3.7899305555555554,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3],"labels":["Day 2","Datasets","Day 1","Day 5","Day 4","Day 3","Syllabus","Example 1","Mapping Homelessness in San Diego","Analyzing Places Data","San Diego Regional Data Library data example","National Survey of Child Health","Add Health","In-school suspensions and academic achievement","Fatal police shootings","Housing and Transportation Affordability Index","Household Pulse Survey Data Tables","Final web scrap medium","Geographic differences in discharge dispositions","Consumer Complaints","Data example","Add-on Packages & Modules","A note on data mining","Untitled","TBI and ACEs Plots","Final Assignment","Note taking","Research Reminders","Lit Reviews","Example Template","Research Notes","research notes","Research Paper","Research Ideas","focus_group","Daily Note","Highlighting structure","Cheat Sheet"],"paths":["day-2.html","datasets.html","day-1.html","day-5.html","day-4.html","day-3.html","syllabus.html","example-1.html","mapping-homelessness-in-san-diego.html","analyzing-places-data.html","san-diego-regional-data-library-data-example.html","national-survey-of-child-health.html","add-health.html","in-school-suspensions-and-academic-achievement.html","fatal-police-shootings.html","housing-and-transportation-affordability-index.html","household-pulse-survey-data-tables.html","final-web-scrap-medium.html","geographic-differences-in-discharge-dispositions.html","consumer-complaints.html","data-example.html","add-on-packages-&-modules.html","a-note-on-data-mining.html","untitled.html","tbi-and-aces-plots.html","final-assignment.html","00-meta/003-tools/note-taking.html","00-meta/003-tools/research-reminders.html","00-meta/003-tools/lit-reviews.html","00-meta/002-templates/example-template.html","00-meta/002-templates/research-notes.html","00-meta/002-templates/meta/zdc-templates/research-notes.html","00-meta/002-templates/meta/zdc-templates/research-paper.html","00-meta/002-templates/meta/zdc-templates/research-ideas.html","00-meta/002-templates/meta/zdc-templates/focus_group.html","00-meta/002-templates/daily-note.html","00-meta/001-structure/highlighting-structure.html","00-meta/001-structure/cheat-sheet.html"],"linkSources":[9,20,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,0,0,0,0,5,5,5,5,4,4,4,3,3,3,3,7,7,13,8,8,8,10,6,6,6,6,6],"linkTargets":[1,9,0,3,12,19,14,15,9,11,16,22,10,21,17,7,1,13,9,7,11,12,0,2,11,14,2,7,8,12,2,0,5,4,18,0,10,0,2,4,2,0,5,4,3]};
let attractionForce = 1;
let linkLength = 10;
let repulsionForce = 150;
let centralForce = 3;
let edgePruning = 100;
</script>
<script type="module" src="lib/scripts/graph_view.js"></script>
<script src="lib/scripts/graph_wasm.js"></script>
<script src="lib/scripts/tinycolor.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pixi.js/7.2.4/pixi.min.js" integrity="sha512-Ch/O6kL8BqUwAfCF7Ie5SX1Hin+BJgYH4pNjRqXdTEqMsis1TUYg+j6nnI9uduPjGaj7DN4UKCZgpvoExt6dkw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="lib/scripts/webpage.js"></script>
</head><body class="theme-dark mod-windows is-frameless is-hidden-frameless obsidian-app show-inline-title show-view-header is-maximized outliner-plugin-better-lists outliner-plugin-dnd" style="--zoom-factor:1.2; --font-text-size:16px; --line-width:50em; --line-width-adaptive:50em; --file-line-width:50em; --content-width:500em; --sidebar-width:25em; --collapse-arrow-size:0.4em; --tree-horizontal-spacing:1em; --tree-vertical-spacing:0.5em; --sidebar-margin:12px;"><div class="webpage-container"><div class="sidebar-left sidebar"><div class="sidebar-content"><div><label class="theme-toggle-container" for="theme_toggle"><input class="theme-toggle-input" type="checkbox" id="theme_toggle"><div class="toggle-background"></div></label></div><div class="tree-container file-tree mod-nav-indicator" data-depth="0"><div class="tree-header"><span class="sidebar-section-header">Bootcamp</span><button class="clickable-icon collapse-tree-button is-collapsed"><iconify-icon icon="ph:arrows-in-line-horizontal-bold" width="18px" height="18px" rotate="90deg" color="currentColor"></iconify-icon></button></div><div class="tree-scroll-area"></div></div></div></div><div class="document-container"><div class="markdown-preview-view markdown-rendered node-insert-event allow-fold-headings show-indentation-guide allow-fold-lists" tabindex="-1" style="tab-size: 4;"><style id="MJX-CHTML-styles"></style><div class="markdown-preview-sizer markdown-preview-section" style="padding-bottom: ; padding-top: var(--file-margins); padding-right: var(--file-margins); padding-left: var(--file-margins); width: 100%; position: absolute;"><div class="markdown-preview-pusher" style="width: 1px; height: 0.1px; margin-bottom: 0px;"></div><div class="mod-header"><div class="inline-title" contenteditable="true" spellcheck="true" autocapitalize="on" tabindex="-1" enterkeyhint="done">Day 5</div></div><div><h1 data-heading="Bringing it all together" id="Bringing_it_all_together">Bringing it all together</h1></div><div><hr></div><div><h3 data-heading="Assignment 1" id="Assignment_1" style="display: flex;"><div class="heading-collapse-indicator collapse-indicator collapse-icon"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="svg-icon right-triangle"><path d="M3 8L12 17L21 8"></path></svg></div>Assignment 1</h3></div><div><p>Follow the examples on working with <a data-href="Add Health" href="add-health.html" class="internal-link" target="_self" rel="noopener">Add Health</a> data, in this assignment you will:</p></div><div><ul class="has-list-bullet">
<li data-line="0"><div class="list-bullet"></div>use data downloaded from a web repository (Add Health) (<a data-href="Day 1" href="day-1.html" class="internal-link" target="_self" rel="noopener">Day 1</a>)</li>
<li data-line="1"><div class="list-bullet"></div>Identify multiple variables to use in the analysis (<a data-href="Day 1" href="day-1.html" class="internal-link" target="_self" rel="noopener">Day 1</a>)</li>
<li data-line="2"><div class="list-bullet"></div>Clean, merge, recode and create new variables (<a data-href="Day 2" href="day-2.html" class="internal-link" target="_self" rel="noopener">Day 2</a>)</li>
<li data-line="3"><div class="list-bullet"></div>import the data into jasp, jamovi or SPSS (<a data-href="Day 2" href="day-2.html" class="internal-link" target="_self" rel="noopener">Day 2</a>)</li>
<li data-line="4"><div class="list-bullet"></div>run a simple analysis (<a data-href="Day 3" href="day-3.html" class="internal-link" target="_self" rel="noopener">Day 3</a>)</li>
<li data-line="5"><div class="list-bullet"></div>create APA formatted tables and visualizations (<a data-href="Day 3" href="day-3.html" class="internal-link" target="_self" rel="noopener">Day 3</a>)</li>
<li data-line="6"><div class="list-bullet"></div>draw conclusions</li>
</ul></div><div><hr></div><div><h4 data-heading="Follow these steps for Assignment 1" id="Follow_these_steps_for_Assignment_1" style="display: flex;"><div class="heading-collapse-indicator collapse-indicator collapse-icon"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="svg-icon right-triangle"><path d="M3 8L12 17L21 8"></path></svg></div>Follow these steps for Assignment 1</h4></div><div><p>I am interested in the association between race/ethnicity and child maltreatment. If you recall, the Add Health data asks questions about experiences in early childhood retrospectively. That is, in Wave III, they ask respondents (who are now in their 20s) to report on experiences they had in childhood (prior to the 6th grade). </p></div><div><ol>
<li data-line="0">
<p>Identify the child maltreatment variables in the online codebook from Wave III (see below, the topic is 'Mistreatment by Adults'). One of the questions is "By the time you started 6th grade..."<br>
<span alt="Pasted image 20230810184719.png" src="Pasted image 20230810184719.png" class="internal-embed media-embed image-embed is-loaded"><img alt="Pasted image 20230810184719.png" src="pasted-image-20230810184719.png"></span></p>
</li>
<li data-line="3">
<p>Select the Race/Ethnicity variable from Wave I. After looking at the codebook, label the variables. Hint, use this variable<br>
<span alt="Pasted image 20230810185614.png" src="Pasted image 20230810185614.png" class="internal-embed media-embed image-embed is-loaded"><img alt="Pasted image 20230810185614.png" src="pasted-image-20230810185614.png"></span></p>
</li>
<li data-line="6">
<p>Merge the Wave III data on mistreatment with Wave I data on race. This will be a one-to-one merge like you did in class. Export the file to a csv and import it into jamovi or jasp.</p>
</li>
<li data-line="7">
<p>Create a table of mistreatment by race/ethnicity.</p>
</li>
<li data-line="8">
<p>Choose one visualization we discussed and illustrate the relationship between mistreatment and race/ethnicity.</p>
</li>
</ol></div><div><h3 data-heading="Assignment 2" id="Assignment_2" style="display: flex;"><div class="heading-collapse-indicator collapse-indicator collapse-icon"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="svg-icon right-triangle"><path d="M3 8L12 17L21 8"></path></svg></div>Assignment 2</h3></div><div><hr></div><div><p>Follow the examples on mapping data, in this assignment you will:</p></div><div><ul class="has-list-bullet">
<li data-line="0"><div class="list-bullet"></div>download data from an online repository</li>
<li data-line="1"><div class="list-bullet"></div>import the data into QGIS</li>
<li data-line="2"><div class="list-bullet"></div>filter the data</li>
<li data-line="3"><div class="list-bullet"></div>merge the data with a boundary file</li>
<li data-line="4"><div class="list-bullet"></div>map the data</li>
</ul></div><div><hr></div><div><h4 data-heading="Follow these steps for Assignment 2" id="Follow_these_steps_for_Assignment_2" style="display: flex;"><div class="heading-collapse-indicator collapse-indicator collapse-icon"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="svg-icon right-triangle"><path d="M3 8L12 17L21 8"></path></svg></div>Follow these steps for Assignment 2</h4></div><div><ol>
<li data-line="0">
<p>Go to the Cook County Medical Examiner Case Archive <a data-tooltip-position="top" aria-label="https://datacatalog.cookcountyil.gov/Public-Safety/Medical-Examiner-Case-Archive/cjeq-bs86" rel="noopener" class="external-link" href="https://datacatalog.cookcountyil.gov/Public-Safety/Medical-Examiner-Case-Archive/cjeq-bs86" target="_blank">Medical Examiner Case Archive | Cook County Open Data (cookcountyil.gov)</a> </p>
</li>
<li data-line="1">
<p><strong>Filter</strong> the data to return rows where <mark>Race = Black and gun violence = TRUE</mark> (<em>Hint</em>: I did this below)<br>
<span alt="Pasted image 20230810190234.png" src="Pasted image 20230810190234.png" class="internal-embed media-embed image-embed is-loaded"><img alt="Pasted image 20230810190234.png" src="pasted-image-20230810190234.png"></span></p>
</li>
<li data-line="4">
<p>Download the shapefile of census tracts in Cook County, Chicago from TigerLine/Census website<br>
<em>Hint</em>: the county FIPS for Cook County is 031, so filter the data such that <mark>"COUNTYFP" = '031'</mark></p>
</li>
<li data-line="6">
<p>Aggregate the homicide data to the census tracts in Cook County</p>
</li>
<li data-line="7">
<p>Make a choropleth map of the deaths. You should have <em>something</em> that looks like this (Note: I added the basemap called ESRI Street)<br>
<span alt="Pasted image 20230810191904.png" src="Pasted image 20230810191904.png" class="internal-embed media-embed image-embed is-loaded"><img alt="Pasted image 20230810191904.png" src="pasted-image-20230810191904.png"></span></p>
</li>
</ol></div><div class="mod-footer"><div class="embedded-backlinks" style="display: none;"></div></div></div></div></div><div class="sidebar-right sidebar"><div class="sidebar-content"><span class="sidebar-section-header">Interactive Graph</span><div class="graph-view-placeholder">
<div class="graph-view-container">
<div class="graph-icon graph-expand" role="button" aria-label="Expand" data-tooltip-position="top"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="svg-icon lucide-arrow-up-right"><line x1="7" y1="17" x2="17" y2="7"></line><polyline points="7 7 17 7 17 17"></polyline></svg></div>
<canvas id="graph-canvas" width="512px" height="512px"></canvas>
</div>
</div><div class="tree-container outline-tree" data-depth="0"><div class="tree-header"><span class="sidebar-section-header">Table Of Contents</span><button class="clickable-icon collapse-tree-button"><iconify-icon icon="ph:arrows-in-line-horizontal-bold" width="18px" height="18px" rotate="90deg" color="currentColor"></iconify-icon></button></div><div class="tree-scroll-area"><div class="tree-item mod-tree-heading" data-depth="1"><div class="tree-item-contents"><a class="tree-item-link" href="#Bringing_it_all_together"><span class="tree-item-title">Bringing it all together</span></a></div><div class="tree-item-children"><div class="tree-item mod-tree-heading" data-depth="3"><div class="tree-item-contents"><a class="tree-item-link" href="#Assignment_1"><span class="tree-item-title">Assignment 1</span></a></div><div class="tree-item-children"></div></div><div class="tree-item mod-tree-heading" data-depth="4"><div class="tree-item-contents"><a class="tree-item-link" href="#Follow_these_steps_for_Assignment_1"><span class="tree-item-title">Follow these steps for Assignment 1</span></a></div><div class="tree-item-children"></div></div><div class="tree-item mod-tree-heading" data-depth="3"><div class="tree-item-contents"><a class="tree-item-link" href="#Assignment_2"><span class="tree-item-title">Assignment 2</span></a></div><div class="tree-item-children"></div></div><div class="tree-item mod-tree-heading" data-depth="4"><div class="tree-item-contents"><a class="tree-item-link" href="#Follow_these_steps_for_Assignment_2"><span class="tree-item-title">Follow these steps for Assignment 2</span></a></div><div class="tree-item-children"></div></div></div></div></div></div></div></div></div></body></html>