{"id":2083,"date":"2023-07-23T19:04:22","date_gmt":"2023-07-23T19:04:22","guid":{"rendered":"https:\/\/statorials.org\/nl\/groepsstandaarddeviatie-in-r\/"},"modified":"2023-07-23T19:04:22","modified_gmt":"2023-07-23T19:04:22","slug":"groepsstandaarddeviatie-in-r","status":"publish","type":"post","link":"https:\/\/statorials.org\/nl\/groepsstandaarddeviatie-in-r\/","title":{"rendered":"Hoe de geclusterde standaarddeviatie in r te berekenen"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\">Een <strong>gepoolde standaarddeviatie<\/strong> is eenvoudigweg een gewogen gemiddelde van de standaarddeviaties van twee of meer onafhankelijke groepen.<\/span><\/p>\n<p> <span style=\"color: #000000;\">In de statistieken komt het meestal voor in de <a href=\"https:\/\/statorials.org\/nl\/test-uw-twee-monsters\/\" target=\"_blank\" rel=\"noopener noreferrer\">t-test met twee steekproeven<\/a> , die wordt gebruikt om te testen of de gemiddelden van twee populaties al dan niet gelijk zijn.<\/span><\/p>\n<p> <span style=\"color: #000000;\">De formule voor het berekenen van een geclusterde standaarddeviatie voor twee groepen is:<\/span><\/p>\n<p> <strong><span style=\"color: #000000;\">Gepoolde standaardafwijking = \u221a <span style=\"border-top: 1px solid black;\">(n <sub>1<\/sub> -1)s <sub>1<\/sub> <sup>2<\/sup> + (n <sub>2<\/sub> -1)s <sub>2<\/sub> <sup>2<\/sup> \/ (n <sub>1<\/sub> +n <sub>2<\/sub> -2)<\/span><\/span><\/strong><\/p>\n<p> <span style=\"color: #000000;\">Goud:<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\"><strong><sub>n1<\/sub> , <sub>n2<\/sub> :<\/strong> Steekproefgrootte voor respectievelijk groep 1 en groep 2.<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>s <sub>1<\/sub> , s <sub>2<\/sub> :<\/strong> Standaardafwijking voor respectievelijk groep 1 en groep 2.<\/span><\/li>\n<\/ul>\n<p> <span style=\"color: #000000;\">De volgende voorbeelden tonen twee methoden voor het berekenen van een geclusterde standaardafwijking tussen twee groepen in R.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>Methode 1: Bereken handmatig de geclusterde standaarddeviatie<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">Stel dat we de volgende gegevenswaarden hebben voor twee steekproeven:<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\"><strong>Monster 1<\/strong> : 6, 6, 7, 8, 8, 10, 11, 13, 15, 15, 16, 17, 19, 19, 21<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>Monster 2<\/strong> : 10, 11, 13, 13, 15, 17, 17, 19, 20, 22, 24, 25, 27, 29, 29<\/span><\/li>\n<\/ul>\n<p> <span style=\"color: #000000;\">De volgende code laat zien hoe u de gepoolde standaardafwijking tussen deze twee steekproeven kunt berekenen:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#define two samples\n<\/span>data1 &lt;- c(6, 6, 7, 8, 8, 10, 11, 13, 15, 15, 16, 17, 19, 19, 21)\ndata2 &lt;- c(10, 11, 13, 13, 15, 17, 17, 19, 20, 22, 24, 25, 27, 29, 29)\n\n<span style=\"color: #008080;\">#find sample standard deviation of each sample\n<\/span>s1 &lt;- <span style=\"color: #3366ff;\">sd<\/span> (data1)\ns2 &lt; <span style=\"color: #3366ff;\">-sd<\/span> (data2)\n\n<span style=\"color: #008080;\">#find sample size of each sample\n<\/span>n1 &lt;- <span style=\"color: #3366ff;\">length<\/span> (data1)\nn2 &lt;- <span style=\"color: #3366ff;\">length<\/span> (data2)\n\n<span style=\"color: #008080;\">#calculate pooled standard deviation\n<\/span>pooled &lt;- <span style=\"color: #3366ff;\">sqrt<\/span> (((n1-1)*s1^2 + (n2-1)*s2^2) \/ (n1+n1-2))\n\n<span style=\"color: #008080;\">#view pooled standard deviation\n<\/span>pooled\n\n[1] 5.789564\n<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">De gepoolde standaarddeviatie blijkt <strong>5,789564<\/strong> te zijn.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>Methode 2: Bereken de geclusterde standaarddeviatie met behulp van een pakket<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">Een andere manier om de gepoolde standaardafwijking tussen twee monsters in R te berekenen, is door de functie <strong>sd_pooled()<\/strong> uit het <strong>effectize-<\/strong> pakket te gebruiken.<\/span><\/p>\n<p> <span style=\"color: #000000;\">De volgende code laat zien hoe u deze functie in de praktijk kunt gebruiken:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\"><span style=\"color: #000000;\"><span style=\"color: #ff0000;\">library<\/span> (effectsize)<\/span>\n\n#define two samples\n<\/span>data1 &lt;- c(6, 6, 7, 8, 8, 10, 11, 13, 15, 15, 16, 17, 19, 19, 21)\ndata2 &lt;- c(10, 11, 13, 13, 15, 17, 17, 19, 20, 22, 24, 25, 27, 29, 29)\n\n<span style=\"color: #008080;\">#calculate pooled standard deviation between two samples\n<\/span>sd_pooled(data1, data2)\n\n[1] 5.789564\n<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">De gepoolde standaarddeviatie blijkt <strong>5,789564<\/strong> te zijn.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Merk op dat dit overeenkomt met de waarde die we in het vorige voorbeeld handmatig hebben berekend.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>Aanvullende bronnen<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">De volgende tutorials bieden meer informatie over het berekenen van een geclusterde standaarddeviatie:<\/span><\/p>\n<p> <a href=\"https:\/\/statorials.org\/nl\/standaarddeviatie-van-de-groep\/\" target=\"_blank\" rel=\"noopener\">Een inleiding tot geclusterde standaarddeviatie<\/a><br \/> Geclusterde standaarddeviatiecalculator<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Een gepoolde standaarddeviatie is eenvoudigweg een gewogen gemiddelde van de standaarddeviaties van twee of meer onafhankelijke groepen. In de statistieken komt het meestal voor in de t-test met twee steekproeven , die wordt gebruikt om te testen of de gemiddelden van twee populaties al dan niet gelijk zijn. De formule voor het berekenen van een [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-2083","post","type-post","status-publish","format-standard","hentry","category-gids"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Hoe geclusterde standaarddeviatie in R te berekenen - Statorials<\/title>\n<meta name=\"description\" content=\"In deze tutorial wordt met een voorbeeld uitgelegd hoe u een geclusterde standaarddeviatie in R kunt berekenen.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/statorials.org\/nl\/groepsstandaarddeviatie-in-r\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Hoe geclusterde standaarddeviatie in R te berekenen - Statorials\" \/>\n<meta property=\"og:description\" content=\"In deze tutorial wordt met een voorbeeld uitgelegd hoe u een geclusterde standaarddeviatie in R kunt berekenen.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/nl\/groepsstandaarddeviatie-in-r\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-23T19:04:22+00:00\" \/>\n<meta name=\"author\" content=\"Dr.benjamin anderson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Verfasst von\" \/>\n\t<meta name=\"twitter:data1\" content=\"Dr.benjamin anderson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Gesch\u00e4tzte Lesezeit\" \/>\n\t<meta name=\"twitter:data2\" content=\"2\u00a0Minuten\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/statorials.org\/nl\/groepsstandaarddeviatie-in-r\/\",\"url\":\"https:\/\/statorials.org\/nl\/groepsstandaarddeviatie-in-r\/\",\"name\":\"Hoe geclusterde standaarddeviatie in R te berekenen - Statorials\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/nl\/#website\"},\"datePublished\":\"2023-07-23T19:04:22+00:00\",\"dateModified\":\"2023-07-23T19:04:22+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/nl\/#\/schema\/person\/d4b8842173cca1bb62cdec41860e4219\"},\"description\":\"In deze tutorial wordt met een voorbeeld uitgelegd hoe u een geclusterde standaarddeviatie in R kunt berekenen.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/nl\/groepsstandaarddeviatie-in-r\/#breadcrumb\"},\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/nl\/groepsstandaarddeviatie-in-r\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/nl\/groepsstandaarddeviatie-in-r\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Thuis\",\"item\":\"https:\/\/statorials.org\/nl\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Hoe de geclusterde standaarddeviatie in r te berekenen\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/statorials.org\/nl\/#website\",\"url\":\"https:\/\/statorials.org\/nl\/\",\"name\":\"Statorials\",\"description\":\"Uw gids voor statistische competentie\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/statorials.org\/nl\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"de\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/statorials.org\/nl\/#\/schema\/person\/d4b8842173cca1bb62cdec41860e4219\",\"name\":\"Dr.benjamin anderson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\/\/statorials.org\/nl\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/statorials.org\/nl\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"contentUrl\":\"http:\/\/statorials.org\/nl\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"caption\":\"Dr.benjamin anderson\"},\"description\":\"Ik ben Benjamin, een gepensioneerde hoogleraar statistiek die nu een toegewijde Statorials-lesgever is. Ik heb uitgebreide ervaring en expertise op het gebied van statistiek en ik ben vastbesloten om mijn kennis te delen met studenten via Statorials. Lees verder\",\"sameAs\":[\"http:\/\/statorials.org\/nl\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Hoe geclusterde standaarddeviatie in R te berekenen - Statorials","description":"In deze tutorial wordt met een voorbeeld uitgelegd hoe u een geclusterde standaarddeviatie in R kunt berekenen.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/statorials.org\/nl\/groepsstandaarddeviatie-in-r\/","og_locale":"de_DE","og_type":"article","og_title":"Hoe geclusterde standaarddeviatie in R te berekenen - Statorials","og_description":"In deze tutorial wordt met een voorbeeld uitgelegd hoe u een geclusterde standaarddeviatie in R kunt berekenen.","og_url":"https:\/\/statorials.org\/nl\/groepsstandaarddeviatie-in-r\/","og_site_name":"Statorials","article_published_time":"2023-07-23T19:04:22+00:00","author":"Dr.benjamin anderson","twitter_card":"summary_large_image","twitter_misc":{"Verfasst von":"Dr.benjamin anderson","Gesch\u00e4tzte Lesezeit":"2\u00a0Minuten"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/statorials.org\/nl\/groepsstandaarddeviatie-in-r\/","url":"https:\/\/statorials.org\/nl\/groepsstandaarddeviatie-in-r\/","name":"Hoe geclusterde standaarddeviatie in R te berekenen - Statorials","isPartOf":{"@id":"https:\/\/statorials.org\/nl\/#website"},"datePublished":"2023-07-23T19:04:22+00:00","dateModified":"2023-07-23T19:04:22+00:00","author":{"@id":"https:\/\/statorials.org\/nl\/#\/schema\/person\/d4b8842173cca1bb62cdec41860e4219"},"description":"In deze tutorial wordt met een voorbeeld uitgelegd hoe u een geclusterde standaarddeviatie in R kunt berekenen.","breadcrumb":{"@id":"https:\/\/statorials.org\/nl\/groepsstandaarddeviatie-in-r\/#breadcrumb"},"inLanguage":"de","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/nl\/groepsstandaarddeviatie-in-r\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/nl\/groepsstandaarddeviatie-in-r\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Thuis","item":"https:\/\/statorials.org\/nl\/"},{"@type":"ListItem","position":2,"name":"Hoe de geclusterde standaarddeviatie in r te berekenen"}]},{"@type":"WebSite","@id":"https:\/\/statorials.org\/nl\/#website","url":"https:\/\/statorials.org\/nl\/","name":"Statorials","description":"Uw gids voor statistische competentie","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/statorials.org\/nl\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"de"},{"@type":"Person","@id":"https:\/\/statorials.org\/nl\/#\/schema\/person\/d4b8842173cca1bb62cdec41860e4219","name":"Dr.benjamin anderson","image":{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/statorials.org\/nl\/#\/schema\/person\/image\/","url":"http:\/\/statorials.org\/nl\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","contentUrl":"http:\/\/statorials.org\/nl\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","caption":"Dr.benjamin anderson"},"description":"Ik ben Benjamin, een gepensioneerde hoogleraar statistiek die nu een toegewijde Statorials-lesgever is. Ik heb uitgebreide ervaring en expertise op het gebied van statistiek en ik ben vastbesloten om mijn kennis te delen met studenten via Statorials. Lees verder","sameAs":["http:\/\/statorials.org\/nl"]}]}},"yoast_meta":{"yoast_wpseo_title":"","yoast_wpseo_metadesc":"","yoast_wpseo_canonical":""},"_links":{"self":[{"href":"https:\/\/statorials.org\/nl\/wp-json\/wp\/v2\/posts\/2083","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/statorials.org\/nl\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/statorials.org\/nl\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/statorials.org\/nl\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/statorials.org\/nl\/wp-json\/wp\/v2\/comments?post=2083"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/nl\/wp-json\/wp\/v2\/posts\/2083\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/nl\/wp-json\/wp\/v2\/media?parent=2083"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/nl\/wp-json\/wp\/v2\/categories?post=2083"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/nl\/wp-json\/wp\/v2\/tags?post=2083"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}