{"id":5357,"date":"2017-03-12T01:32:59","date_gmt":"2017-03-12T06:32:59","guid":{"rendered":"http:\/\/www.thejuliagroup.com\/blog\/?p=5357"},"modified":"2017-03-12T01:32:59","modified_gmt":"2017-03-12T06:32:59","slug":"charts-with-cdc-data-a-step-by-step-example","status":"publish","type":"post","link":"https:\/\/www.thejuliagroup.com\/blog\/charts-with-cdc-data-a-step-by-step-example\/","title":{"rendered":"Charts with CDC Data- A step by step example"},"content":{"rendered":"<p>Perhaps you have watched the Socrata videos on how to do data visualization with government data sets and it is still not working for you. Here is a step by step example of answering a simple question.<\/p>\n<p>&nbsp;<\/p>\n<h3>Is the prevalence of alcohol use among youth higher in rural states than urban ones?<\/h3>\n<p>You can click on a link below to go directly to that step.<\/p>\n<p><a href=\"https:\/\/chronicdata.cdc.gov\/\">First, I went to this Chronic Disease and Health Promotion Data &amp; Indicators site<\/a>.<\/p>\n<p><a href=\"https:\/\/chronicdata.cdc.gov\/health-area\/chronic-disease-indicators\">Second, I selected Chronic Disease Indicators <\/a>for my health area of interest.<\/p>\n<p><a href=\"https:\/\/chronicdata.cdc.gov\/Chronic-Disease-Indicators\/U-S-Chronic-Disease-Indicators-Alcohol\/5hba-acwf\">Third, I selected ALCOHOL<\/a> &#8211; which brought me to the screen showing all the columns of data and a bunch of choices.<\/p>\n<p>Fourth, I clicked\u00a0 on FILTER on the right of the screen and then select a column to filter by.<\/p>\n<p><a href=\"http:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2017\/03\/1SelectFilter.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5358\" src=\"http:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2017\/03\/1SelectFilter.png\" alt=\"select a filter\" width=\"450\" height=\"503\" srcset=\"https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2017\/03\/1SelectFilter.png 450w, https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2017\/03\/1SelectFilter-268x300.png 268w\" sizes=\"auto, (max-width: 450px) 100vw, 450px\" \/><\/a><br \/>\nChrome did not give me a scroll bar so the furthest option I could get was Topic. I switched over to Firefox and was able to get this menu where I selected Question and Alcohol use among youth. You have to type in the value that you want. Make sure it is spelled exactly the same as in the data set.<\/p>\n<p>Fifth, since I wanted to compare urban and rural states, I clicked Add a New Filter Condition and then selected California, New York, North Dakota and Wyoming with LocationDesc as the filter condition. Make sure the box next to each condition you want is clicked on.<\/p>\n<p><a href=\"http:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2017\/03\/2secondfilter.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5359\" src=\"http:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2017\/03\/2secondfilter.png\" alt=\"2secondfilter\" width=\"450\" height=\"668\" srcset=\"https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2017\/03\/2secondfilter.png 450w, https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2017\/03\/2secondfilter-202x300.png 202w\" sizes=\"auto, (max-width: 450px) 100vw, 450px\" \/><\/a>Sixth, I looked at my data, saw there was no data for California and I was sad. Not every state participates in every data set.<\/p>\n<p><a href=\"http:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2017\/03\/3NoCalifornia.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5360\" src=\"http:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2017\/03\/3NoCalifornia.png\" alt=\"Data withiout California\" width=\"450\" height=\"192\" srcset=\"https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2017\/03\/3NoCalifornia.png 450w, https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2017\/03\/3NoCalifornia-300x128.png 300w\" sizes=\"auto, (max-width: 450px) 100vw, 450px\" \/><\/a>7. So, I decided to compare urban, eastern states wth rural midwest\/west and I selected New York, New Jersey, Massachusetts, Wyoming, North Dakota and Montana\u00a0 All had data so I was good to go.<\/p>\n<p>In case you were wondering,\u00a0 <a href=\"https:\/\/priceonomics.com\/the-most-urbanized-states-in-america\/\">I based my choice on the listing of states by urbanization , <\/a>New Jersey is #2, MA 5 and NY 13<a href=\"https:\/\/priceonomics.com\/the-most-urbanized-states-in-america\/\"><br \/>\n<\/a>On the other extreme, Wyoming is 39, North Dakota is 42,\u00a0 and Montana 47 so I thought this was a pretty good split.<\/p>\n<p>8. I clicked on visualize on the right, selected Column as the type of chart, Location Desc as the label data, DataValueAlt as the data value, and there was my chart<\/p>\n<p>Note: I could not select DataValue. My guess is that was a string variable. I had to select DataValuealt, which was the exact same value<\/p>\n<p><a href=\"http:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2017\/03\/4graph.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5361\" src=\"http:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2017\/03\/4graph.png\" alt=\"4graph\" width=\"500\" height=\"1000\" srcset=\"https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2017\/03\/4graph.png 500w, https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2017\/03\/4graph-150x300.png 150w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a><\/p>\n<p>9.Just to make it more obvious, I went in and sorted on data value, which caused the chart to be recreated automatically.<\/p>\n<p><a href=\"http:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2017\/03\/5Sort.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5362\" src=\"http:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2017\/03\/5Sort.png\" alt=\"Sorting the table\" width=\"450\" height=\"260\" srcset=\"https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2017\/03\/5Sort.png 450w, https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2017\/03\/5Sort-300x173.png 300w\" sizes=\"auto, (max-width: 450px) 100vw, 450px\" \/><\/a><\/p>\n<p>You can see below the chart it created. It&#8217;s pretty clear that in these data there is no relationship between urbanization and alcohol use among youth.<\/p>\n<p><a href=\"http:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2017\/03\/6graph.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5363\" src=\"http:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2017\/03\/6graph.png\" alt=\"graph\" width=\"500\" height=\"305\" srcset=\"https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2017\/03\/6graph.png 500w, https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2017\/03\/6graph-300x183.png 300w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a><\/p>\n<p>New York and New Jersey where the lowest and highest prevalence, respectively. I was hoping to see a pattern with more rural states higher, but it seemed to be pretty unrelated.<\/p>\n<p>HOW TO DOWNLOAD THE DATA SETS FOR\u00a0 ANALYSIS<\/p>\n<p>Perhaps you would prefer to download the data set for import into some other tool, say, Excel or SAS. The first three steps are the same, into you find the data set you want.<\/p>\n<p>This next step is not required , but the data sets can be pretty big, so I&#8217;d suggest filtering on at least one major variable first. For example, you can click the three rows next to any column, say, Question, and then select the question that interests you, say Binge Drinking.<\/p>\n<p><a href=\"http:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2017\/03\/8otherway1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5366\" src=\"http:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2017\/03\/8otherway1.png\" alt=\"selecting a filter\" width=\"500\" height=\"181\" srcset=\"https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2017\/03\/8otherway1.png 500w, https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2017\/03\/8otherway1-300x109.png 300w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a><\/p>\n<p>Next, click the EXPORT button at the top right of the screen. Select the format in which you want your file to be downloaded. That&#8217;s it!<\/p>\n<p><a href=\"http:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2017\/03\/9download.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5367\" src=\"http:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2017\/03\/9download.png\" alt=\"download menu\" width=\"500\" height=\"669\" srcset=\"https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2017\/03\/9download.png 500w, https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2017\/03\/9download-224x300.png 224w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/sites.fastspring.com\/7generation\/product\/fishlake\">Have kids? Know anyone who has kids? Like kids? Own a computer? Fish Lake will teach fractions and Native American history, with no whining and all for under ten bucks.<\/a><\/p>\n<p><a href=\"http:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2016\/09\/BUY-Banner-copy.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5233\" src=\"http:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2016\/09\/BUY-Banner-copy.png\" alt=\"Buy our games\" width=\"450\" height=\"500\" srcset=\"https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2016\/09\/BUY-Banner-copy.png 450w, https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2016\/09\/BUY-Banner-copy-270x300.png 270w\" sizes=\"auto, (max-width: 450px) 100vw, 450px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Perhaps you have watched the Socrata videos on how to do data visualization with government data sets and it is still not working for you. Here is a step by step example of answering a simple question. &nbsp; Is the prevalence of alcohol use among youth higher in rural states than urban ones? You can&#8230;<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[15,11],"tags":[],"class_list":["post-5357","post","type-post","status-publish","format-standard","hentry","category-open-data","category-statistics"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/posts\/5357","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/comments?post=5357"}],"version-history":[{"count":2,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/posts\/5357\/revisions"}],"predecessor-version":[{"id":5368,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/posts\/5357\/revisions\/5368"}],"wp:attachment":[{"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/media?parent=5357"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/categories?post=5357"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/tags?post=5357"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}