{"id":4609,"date":"2015-05-18T00:43:27","date_gmt":"2015-05-18T05:43:27","guid":{"rendered":"http:\/\/www.thejuliagroup.com\/blog\/?p=4609"},"modified":"2015-05-18T13:07:38","modified_gmt":"2015-05-18T18:07:38","slug":"how-do-i-write-a-statistical-analysis-paper-step-two","status":"publish","type":"post","link":"https:\/\/www.thejuliagroup.com\/blog\/how-do-i-write-a-statistical-analysis-paper-step-two\/","title":{"rendered":"How do I write a statistical analysis paper: Step two"},"content":{"rendered":"<p><a href=\"http:\/\/www.thejuliagroup.com\/blog\/?p=4607\">In the last post, I posed the following null hypothesis as an example<\/a>:<\/p>\n<p><em>There is no difference in obesity among Caucasians, African-Americans and Latinos.<\/em><\/p>\n<p><a href=\"http:\/\/www.thejuliagroup.com\/documents\/blogexample1.html\">You can see the results from the statistical analyses here.<\/a><\/p>\n<p>Since my question only pertains to those three groups, let&#8217;s begin by creating a data set with just those subjects.<\/p>\n<p>libname mydata &#8220;\/courses\/ab1234\/c_0001\/&#8221; access=readonly;<\/p>\n<p>Data example ;<br \/>\nset mydata.coh602;<br \/>\nwhere race ne &#8220;&#8221; ;<\/p>\n<p>Don&#8217;t forget to run the program!<\/p>\n<p>Now, let&#8217;s do something new and use something relatively new, the tasks in SAS Studio. On the left screen, click on TASKS, then on STATISTICS, then click DATA EXPLORATION.<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2015\/05\/tasks1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4613\" src=\"http:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2015\/05\/tasks1.png\" alt=\"tasks in left pane\" width=\"387\" height=\"402\" srcset=\"https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2015\/05\/tasks1.png 387w, https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2015\/05\/tasks1-289x300.png 289w\" sizes=\"auto, (max-width: 387px) 100vw, 387px\" \/><\/a><\/p>\n<p>Once you click on DATA EXPLORATION, in the right window pane you&#8217;ll see several boxes, but the first thing you need to do is select the correct data set. To do that, click on the thing that looks like a sort of spreadsheet.<\/p>\n<p><a href=\"http:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2015\/05\/tasks2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4614\" src=\"http:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2015\/05\/tasks2.png\" alt=\"tasks2\" width=\"395\" height=\"517\" srcset=\"https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2015\/05\/tasks2.png 395w, https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2015\/05\/tasks2-229x300.png 229w\" sizes=\"auto, (max-width: 395px) 100vw, 395px\" \/><\/a>When you do that, you&#8217;ll see the list of libraries available to you. You need to scroll all the way down to the WORK library. This is where temporary data sets that you create are stored. Click on the WORK library to see the list of data sets in it.<\/p>\n<p><a href=\"http:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2015\/05\/tasks3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4615\" src=\"http:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2015\/05\/tasks3.png\" alt=\"Dataset example in work library\" width=\"427\" height=\"495\" srcset=\"https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2015\/05\/tasks3.png 427w, https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2015\/05\/tasks3-259x300.png 259w\" sizes=\"auto, (max-width: 427px) 100vw, 427px\" \/><\/a>Select the EXAMPLE data set and click on OK. Now that you have your data set, it is time to select your variables.<\/p>\n<p><a href=\"http:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2015\/05\/task4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4616\" src=\"http:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2015\/05\/task4.png\" alt=\"Window with task roles\" width=\"361\" height=\"533\" srcset=\"https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2015\/05\/task4.png 361w, https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2015\/05\/task4-203x300.png 203w\" sizes=\"auto, (max-width: 361px) 100vw, 361px\" \/><\/a>Click on the +\u00a0 next to the variables and you&#8217;ll get a list of variables from which you can select.\u00a0 Scroll down and select the variable you want. First, as shown above, I selected RACE for the classification variable.<\/p>\n<p><a href=\"http:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2015\/05\/task5.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4617\" src=\"http:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2015\/05\/task5.png\" alt=\"Selecting variables\" width=\"330\" height=\"450\" srcset=\"https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2015\/05\/task5.png 330w, https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2015\/05\/task5-220x300.png 220w\" sizes=\"auto, (max-width: 330px) 100vw, 330px\" \/><\/a><\/p>\n<p>This gives me a chart, and it appears that whites have a lower body mass index than black or Latino respondents in this survey.<\/p>\n<p><a href=\"http:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2015\/05\/tasks6.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4618\" src=\"http:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2015\/05\/tasks6.png\" alt=\"bar chart of BMI\" width=\"450\" height=\"342\" srcset=\"https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2015\/05\/tasks6.png 450w, https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2015\/05\/tasks6-300x228.png 300w\" sizes=\"auto, (max-width: 450px) 100vw, 450px\" \/><\/a>My next analysis is to do the summary statistics. I simply click on SUMMARY STATISTICS under the statistics tab (it&#8217;s right under data exploration) and select the same two variables.<a href=\"http:\/\/www.thejuliagroup.com\/documents\/tasks\/summary.html\"> You can click here to see the results<\/a>. Mean BMI for both the black and Hispanic samples was 29, while for whites it was 27. Standard deviations for the three groups ranged from 5.7 to 6.9 which was actually less than I expected.<\/p>\n<p>So, there are differences in body mass index by race\/ ethnicity, but that leaves a few questions left:<\/p>\n<ol>\n<li>Do those differences persist when you control for age and gender?<\/li>\n<li>While there are differences in body mass index, that doesn&#8217;t necessarily mean more people are obese. Maybe there are more underweight white people. Hey, it&#8217;s possible.<\/li>\n<\/ol>\n<p>Well, now you have a chart and a table to add to the table you created in the first analyses. In the next post, we can move on to those other questions.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the last post, I posed the following null hypothesis as an example: There is no difference in obesity among Caucasians, African-Americans and Latinos. You can see the results from the statistical analyses here. Since my question only pertains to those three groups, let&#8217;s begin by creating a data set with just those subjects. libname&#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":[9,11,8],"tags":[],"class_list":["post-4609","post","type-post","status-publish","format-standard","hentry","category-software","category-statistics","category-technology"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/posts\/4609","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=4609"}],"version-history":[{"count":4,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/posts\/4609\/revisions"}],"predecessor-version":[{"id":4621,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/posts\/4609\/revisions\/4621"}],"wp:attachment":[{"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/media?parent=4609"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/categories?post=4609"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/tags?post=4609"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}