{"id":71,"date":"2024-06-18T20:48:11","date_gmt":"2024-06-18T20:48:11","guid":{"rendered":"https:\/\/sites.evergreen.edu\/mesthesis\/?page_id=71"},"modified":"2025-03-04T01:32:12","modified_gmt":"2025-03-04T01:32:12","slug":"statistics-resources","status":"publish","type":"page","link":"https:\/\/sites.evergreen.edu\/mesthesis\/statistics-resources\/","title":{"rendered":"Statistics Resources"},"content":{"rendered":"\n<p>The statistics labs in R linked below were created by <a rel=\"noreferrer noopener\" href=\"https:\/\/nam02.safelinks.protection.outlook.com\/?url=https%3A%2F%2Fwww.evergreen.edu%2Fdirectory%2Fjohn-withey&amp;data=05%7C02%7Cwitheyj%40evergreen.edu%7C2aaa37a71acf467081b408dd5820a8d4%7C22adcff7c06f49a68f2050711c40ddaa%7C0%7C0%7C638763619476601407%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&amp;sdata=9rM7xdrKqGok8gMU9S1Pw4Qj8I4tZt0l3heGqvzuEkw%3D&amp;reserved=0\" target=\"_blank\">John Withey<\/a>&nbsp;(MES faculty, 2016-present) in 2025, based on his work in the MES core program Research Design &amp; Quantitative Methods and elective Data Analysis &amp; Visualization in R. They were originally designed to be completed in sequence, which is advised if you&#8217;re new to using R and RStudio, but were revised to be more or less stand-alone activities if you have some background in using R for statistical analyses. <\/p>\n\n\n\n<p>The links are to specific pages on <a href=\"https:\/\/rpubs.com\/\">RPubs<\/a>. Most labs use specific data files, so download those .csv files here before starting the lab.  You can also save the lab instructions as an .html file, to use offline in the future.<\/p>\n\n\n\n<p><strong>Data Analysis &amp; Visualization in R for Environmental Studies<\/strong><\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" href=\"https:\/\/nam02.safelinks.protection.outlook.com\/?url=https%3A%2F%2Frpubs.com%2Fwitheyj%2Fintroduction&amp;data=05%7C02%7Cwitheyj%40evergreen.edu%7C2aaa37a71acf467081b408dd5820a8d4%7C22adcff7c06f49a68f2050711c40ddaa%7C0%7C0%7C638763619476613538%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&amp;sdata=OD1QB6z3%2BGTLfPM8erTvqD0LTrQ1kPuHWG88sQifseo%3D&amp;reserved=0\" target=\"_blank\">Introduction<\/a>&nbsp;to the series of labs as a whole (please read before jumping into any of the Labs!). This page has links for getting started in R and RStudio.<\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" href=\"https:\/\/nam02.safelinks.protection.outlook.com\/?url=https%3A%2F%2Frpubs.com%2Fwitheyj%2Flab1_tidy&amp;data=05%7C02%7Cwitheyj%40evergreen.edu%7C2aaa37a71acf467081b408dd5820a8d4%7C22adcff7c06f49a68f2050711c40ddaa%7C0%7C0%7C638763619476625525%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&amp;sdata=ksLitJ8MsauFa51gDUvfngPOp8oBe06ABwmAkVhuRTs%3D&amp;reserved=0\" target=\"_blank\">Lab 1: Workflow and Tidying<\/a>&nbsp;is an introduction to the <a rel=\"noreferrer noopener\" href=\"https:\/\/nam02.safelinks.protection.outlook.com\/?url=https%3A%2F%2Fwww.tidyverse.org%2F&amp;data=05%7C02%7Cwitheyj%40evergreen.edu%7C2aaa37a71acf467081b408dd5820a8d4%7C22adcff7c06f49a68f2050711c40ddaa%7C0%7C0%7C638763619476637978%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&amp;sdata=AsaCHU9%2Bf%2BzMWPBO%2FP94aYSblvc0tekSMA8jW9aMtu0%3D&amp;reserved=0\" target=\"_blank\">tidyverse<\/a>&nbsp;collection of packages.&nbsp; Download these two .csv files:<\/p>\n\n\n\n<div class=\"wp-block-file\"><a id=\"wp-block-file--media-c8f27192-c9eb-4045-908e-22b96289f5eb\" href=\"https:\/\/sites.evergreen.edu\/mesthesis\/wp-content\/uploads\/sites\/745\/2025\/02\/simd2020.csv\">simd2020<\/a><a href=\"https:\/\/sites.evergreen.edu\/mesthesis\/wp-content\/uploads\/sites\/745\/2025\/02\/simd2020.csv\" class=\"wp-block-file__button\" download aria-describedby=\"wp-block-file--media-c8f27192-c9eb-4045-908e-22b96289f5eb\">Download<\/a><\/div>\n\n\n\n<div class=\"wp-block-file\"><a id=\"wp-block-file--media-af43c937-72b6-4ff8-87ca-3469dd7e4231\" href=\"https:\/\/sites.evergreen.edu\/mesthesis\/wp-content\/uploads\/sites\/745\/2025\/02\/covid_totals.csv\">covid_totals<\/a><a href=\"https:\/\/sites.evergreen.edu\/mesthesis\/wp-content\/uploads\/sites\/745\/2025\/02\/covid_totals.csv\" class=\"wp-block-file__button\" download aria-describedby=\"wp-block-file--media-af43c937-72b6-4ff8-87ca-3469dd7e4231\">Download<\/a><\/div>\n\n\n\n<p><a rel=\"noreferrer noopener\" href=\"https:\/\/nam02.safelinks.protection.outlook.com\/?url=https%3A%2F%2Frpubs.com%2Fwitheyj%2Flab2_ggplot&amp;data=05%7C02%7Cwitheyj%40evergreen.edu%7C2aaa37a71acf467081b408dd5820a8d4%7C22adcff7c06f49a68f2050711c40ddaa%7C0%7C0%7C638763619476649697%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&amp;sdata=BT5AX5OfwwMdp1eyYVngJTSHggIZICQ2s79xg%2BMoE3M%3D&amp;reserved=0\" target=\"_blank\">Lab 2: More tidying &amp; ggplot<\/a>&nbsp;continues with some additional tidying functions, and explores more uses of <a rel=\"noreferrer noopener\" href=\"https:\/\/nam02.safelinks.protection.outlook.com\/?url=https%3A%2F%2Fggplot2.tidyverse.org%2F&amp;data=05%7C02%7Cwitheyj%40evergreen.edu%7C2aaa37a71acf467081b408dd5820a8d4%7C22adcff7c06f49a68f2050711c40ddaa%7C0%7C0%7C638763619476661556%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&amp;sdata=9iDxAWwpLvQLR0gns2bcttREYdG%2BeMItMpGingx0v6Y%3D&amp;reserved=0\" target=\"_blank\">ggplot2<\/a>, which is used for (nearly) all plotting and visualizations in the the labs. Uses built-in datasets available in R (no downloads needed).<\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" href=\"https:\/\/nam02.safelinks.protection.outlook.com\/?url=https%3A%2F%2Frpubs.com%2Fwitheyj%2Flab3_glm&amp;data=05%7C02%7Cwitheyj%40evergreen.edu%7C2aaa37a71acf467081b408dd5820a8d4%7C22adcff7c06f49a68f2050711c40ddaa%7C0%7C0%7C638763619476675661%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&amp;sdata=MfYd0DkuXL5Wd1UA2SNOaq3CQPEIyP8f78kxufA%2BV3M%3D&amp;reserved=0\" target=\"_blank\">Lab 3: Logistic Regression using glm()<\/a>&nbsp;introduces the glm() function, first with an example of simple linear regression but then with an extended example of logistic regression. Download these two .csv files:<\/p>\n\n\n\n<div class=\"wp-block-file\"><a id=\"wp-block-file--media-a9800b52-8412-46ee-b308-7e66c49307bc\" href=\"https:\/\/sites.evergreen.edu\/mesthesis\/wp-content\/uploads\/sites\/745\/2025\/02\/ants_tb.csv\">ants_tb<\/a><a href=\"https:\/\/sites.evergreen.edu\/mesthesis\/wp-content\/uploads\/sites\/745\/2025\/02\/ants_tb.csv\" class=\"wp-block-file__button\" download aria-describedby=\"wp-block-file--media-a9800b52-8412-46ee-b308-7e66c49307bc\">Download<\/a><\/div>\n\n\n\n<div class=\"wp-block-file\"><a id=\"wp-block-file--media-d7a8056b-629c-4310-a902-93bf2f90aee3\" href=\"https:\/\/sites.evergreen.edu\/mesthesis\/wp-content\/uploads\/sites\/745\/2025\/02\/mroz_mod.csv\">mroz_mod<\/a><a href=\"https:\/\/sites.evergreen.edu\/mesthesis\/wp-content\/uploads\/sites\/745\/2025\/02\/mroz_mod.csv\" class=\"wp-block-file__button\" download aria-describedby=\"wp-block-file--media-d7a8056b-629c-4310-a902-93bf2f90aee3\">Download<\/a><\/div>\n\n\n\n<p><a href=\"https:\/\/rpubs.com\/witheyj\/lab4_glm\">Lab 4: Modeling discrete count data<\/a> demonstrates ways to model the response of count data to multiple independent variables, first with Poisson regression using glm(), then with other alternative models using glm.nb(), zeroinfl(), and hurdle().<\/p>\n\n\n\n<div class=\"wp-block-file\"><a id=\"wp-block-file--media-067286b9-9ae0-4d35-a3dc-4197cee847ec\" href=\"https:\/\/sites.evergreen.edu\/mesthesis\/wp-content\/uploads\/sites\/745\/2025\/03\/crab_sat.csv\">crab_sat<\/a><a href=\"https:\/\/sites.evergreen.edu\/mesthesis\/wp-content\/uploads\/sites\/745\/2025\/03\/crab_sat.csv\" class=\"wp-block-file__button\" download aria-describedby=\"wp-block-file--media-067286b9-9ae0-4d35-a3dc-4197cee847ec\">Download<\/a><\/div>\n\n\n\n<p>(last updated 3\/3\/2025) &#8230;with more Labs to come!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The statistics labs in R linked below were created by John Withey&nbsp;(MES faculty, 2016-present) in 2025, based on his work in the MES core program Research Design &amp; Quantitative Methods and elective Data Analysis &amp; Visualization in R. They were&#8230; <a class=\"more-link\" href=\"https:\/\/sites.evergreen.edu\/mesthesis\/statistics-resources\/\">Continue Reading &rarr;<\/a><\/p>\n","protected":false},"author":8089,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_mi_skip_tracking":false},"_links":{"self":[{"href":"https:\/\/sites.evergreen.edu\/mesthesis\/wp-json\/wp\/v2\/pages\/71"}],"collection":[{"href":"https:\/\/sites.evergreen.edu\/mesthesis\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/sites.evergreen.edu\/mesthesis\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/sites.evergreen.edu\/mesthesis\/wp-json\/wp\/v2\/users\/8089"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.evergreen.edu\/mesthesis\/wp-json\/wp\/v2\/comments?post=71"}],"version-history":[{"count":11,"href":"https:\/\/sites.evergreen.edu\/mesthesis\/wp-json\/wp\/v2\/pages\/71\/revisions"}],"predecessor-version":[{"id":239,"href":"https:\/\/sites.evergreen.edu\/mesthesis\/wp-json\/wp\/v2\/pages\/71\/revisions\/239"}],"wp:attachment":[{"href":"https:\/\/sites.evergreen.edu\/mesthesis\/wp-json\/wp\/v2\/media?parent=71"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}