{"id":1094,"date":"2023-07-27T16:45:42","date_gmt":"2023-07-27T16:45:42","guid":{"rendered":"https:\/\/statorials.org\/nl\/f-test-in-r\/"},"modified":"2023-07-27T16:45:42","modified_gmt":"2023-07-27T16:45:42","slug":"f-test-in-r","status":"publish","type":"post","link":"https:\/\/statorials.org\/nl\/f-test-in-r\/","title":{"rendered":"Een f-test uitvoeren in r"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\">Een <strong>F-toets<\/strong> wordt gebruikt om te testen of twee populatievarianties gelijk zijn. De nul- en alternatieve hypothesen van de test zijn als volgt:<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>H <sub>0<\/sub> :<\/strong> \u03c3 <sub>1<\/sub> <sup>2<\/sup> = \u03c3 <sub>2<\/sub> <sup>2<\/sup> (populatievarianties zijn gelijk)<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>H <sub>1<\/sub> :<\/strong> \u03c3 <sub>1<\/sub> <sup>2<\/sup> \u2260 \u03c3 <sub>2<\/sub> <sup>2<\/sup> (populatievarianties zijn <em>niet<\/em> gelijk)<\/span><\/p>\n<p> <span style=\"color: #000000;\">Om een F-test in R uit te voeren, kunt u de functie <strong>var.test()<\/strong> gebruiken met een van de volgende syntaxis:<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\"><strong>Methode 1:<\/strong> var.test(x, y, alternatief = \u201ctwee kanten\u201d)<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>Methode 2:<\/strong> var.test(waarden ~ groepen, data, alternatief = \u201ctwee kanten\u201d)<\/span><\/li>\n<\/ul>\n<p> <span style=\"color: #000000;\">Merk op dat <em>alternatief<\/em> de alternatieve hypothese aangeeft die moet worden gebruikt. De standaardinstelling is &#8222;tweezijdig&#8220;, maar u kunt dit opgeven als &#8222;links&#8220; of &#8222;rechts&#8220;.<\/span><\/p>\n<p> <span style=\"color: #000000;\">In deze tutorial wordt uitgelegd hoe u met beide methoden een F-test in R uitvoert.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>Methode 1: F-test in R<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">De volgende code laat zien hoe u een F-test uitvoert met behulp van de eerste methode:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#define the two groups<\/span>\nx &lt;- c(18, 19, 22, 25, 27, 28, 41, 45, 51, 55)\ny &lt;- c(14, 15, 15, 17, 18, 22, 25, 25, 27, 34)\n\n<span style=\"color: #008080;\">#perform an F-test to determine in the variances are equal\n<\/span>var.test(x, y)\n\n\tF test to compare two variances\n\ndata: x and y\nF = 4.3871, num df = 9, denom df = 9, p-value = 0.03825\nalternative hypothesis: true ratio of variances is not equal to 1\n95 percent confidence interval:\n  1.089699 17.662528\nsample estimates:\nratio of variances \n          4.387122 \n<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">De F-teststatistiek is <strong>4,3871<\/strong> en de overeenkomstige p-waarde is <strong>0,03825<\/strong> . Omdat deze p-waarde kleiner is dan 0,05, zouden we de nulhypothese verwerpen. Dit betekent dat we voldoende bewijs hebben om te zeggen dat de twee populatievarianties <em>niet<\/em> gelijk zijn.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>Methode 2: F-test in R<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">De volgende code laat zien hoe u een F-test uitvoert met behulp van de eerste methode:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#define the two groups<\/span>\ndata &lt;- data.frame(values=c(18, 19, 22, 25, 27, 28, 41, 45, 51, 55,\n                            14, 15, 15, 17, 18, 22, 25, 25, 27, 34),\n                   group= <span style=\"color: #3366ff;\">rep<\/span> (c('A', 'B'), <span style=\"color: #3366ff;\">each<\/span> = <span style=\"color: #008000;\">10<\/span> ))\n\n<span style=\"color: #008080;\">#perform an F-test to determine in the variances are equal\n<\/span>var.test(values~group, data=data)\n\n\tF test to compare two variances\n\ndata: x and y\nF = 4.3871, num df = 9, denom df = 9, p-value = 0.03825\nalternative hypothesis: true ratio of variances is not equal to 1\n95 percent confidence interval:\n  1.089699 17.662528\nsample estimates:\nratio of variances \n          4.387122 \n<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">Opnieuw is de F-teststatistiek <strong>4,3871<\/strong> en de overeenkomstige p-waarde is <strong>0,03825<\/strong> . Omdat deze <a href=\"https:\/\/statorials.org\/nl\/p-waarden-statistische-significantie\/\" target=\"_blank\" rel=\"noopener\">p-waarde<\/a> kleiner is dan 0,05, zouden we de nulhypothese verwerpen.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Dit betekent dat we voldoende bewijs hebben om te zeggen dat de twee populatievarianties <em>niet<\/em> gelijk zijn.<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>Gerelateerd<\/strong> : Voer een F-test uit met behulp van deze gratis F-testcalculator met gelijke varianties.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>Wanneer moet u de F-test gebruiken?<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">De F-test wordt doorgaans gebruikt om een van de volgende vragen te beantwoorden:<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>1.<\/strong> Komen twee steekproeven uit populaties met gelijke varianties?<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>2.<\/strong> Vermindert een nieuwe behandeling of proces de variabiliteit van een huidige behandeling of proces?<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>Aanvullende bronnen<\/strong><\/span><\/h3>\n<p> <a href=\"https:\/\/statorials.org\/nl\/f-testpython\/\" target=\"_blank\" rel=\"noopener noreferrer\">Hoe een F-test uit te voeren in Python<\/a><br \/> <a href=\"https:\/\/statorials.org\/nl\/een-eenvoudige-gids-voor-het-begrijpen-van-de-f-toets-voor-de-algehele-significantie-bij-regressie\/\" target=\"_blank\" rel=\"noopener noreferrer\">Hoe de F-test te interpreteren voor de algehele significantie in regressie<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Een F-toets wordt gebruikt om te testen of twee populatievarianties gelijk zijn. De nul- en alternatieve hypothesen van de test zijn als volgt: H 0 : \u03c3 1 2 = \u03c3 2 2 (populatievarianties zijn gelijk) H 1 : \u03c3 1 2 \u2260 \u03c3 2 2 (populatievarianties zijn niet gelijk) Om een F-test in R [&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-1094","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>Een F-test uitvoeren in R - Statorials<\/title>\n<meta name=\"description\" content=\"In deze tutorial wordt uitgelegd hoe u een F-test in R uitvoert, inclusief een stapsgewijs voorbeeld.\" \/>\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\/f-test-in-r\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Een F-test uitvoeren in R - Statorials\" \/>\n<meta property=\"og:description\" content=\"In deze tutorial wordt uitgelegd hoe u een F-test in R uitvoert, inclusief een stapsgewijs voorbeeld.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/nl\/f-test-in-r\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-27T16:45:42+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\/f-test-in-r\/\",\"url\":\"https:\/\/statorials.org\/nl\/f-test-in-r\/\",\"name\":\"Een F-test uitvoeren in R - Statorials\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/nl\/#website\"},\"datePublished\":\"2023-07-27T16:45:42+00:00\",\"dateModified\":\"2023-07-27T16:45:42+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/nl\/#\/schema\/person\/d4b8842173cca1bb62cdec41860e4219\"},\"description\":\"In deze tutorial wordt uitgelegd hoe u een F-test in R uitvoert, inclusief een stapsgewijs voorbeeld.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/nl\/f-test-in-r\/#breadcrumb\"},\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/nl\/f-test-in-r\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/nl\/f-test-in-r\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Thuis\",\"item\":\"https:\/\/statorials.org\/nl\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Een f-test uitvoeren in r\"}]},{\"@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":"Een F-test uitvoeren in R - Statorials","description":"In deze tutorial wordt uitgelegd hoe u een F-test in R uitvoert, inclusief een stapsgewijs voorbeeld.","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\/f-test-in-r\/","og_locale":"de_DE","og_type":"article","og_title":"Een F-test uitvoeren in R - Statorials","og_description":"In deze tutorial wordt uitgelegd hoe u een F-test in R uitvoert, inclusief een stapsgewijs voorbeeld.","og_url":"https:\/\/statorials.org\/nl\/f-test-in-r\/","og_site_name":"Statorials","article_published_time":"2023-07-27T16:45:42+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\/f-test-in-r\/","url":"https:\/\/statorials.org\/nl\/f-test-in-r\/","name":"Een F-test uitvoeren in R - Statorials","isPartOf":{"@id":"https:\/\/statorials.org\/nl\/#website"},"datePublished":"2023-07-27T16:45:42+00:00","dateModified":"2023-07-27T16:45:42+00:00","author":{"@id":"https:\/\/statorials.org\/nl\/#\/schema\/person\/d4b8842173cca1bb62cdec41860e4219"},"description":"In deze tutorial wordt uitgelegd hoe u een F-test in R uitvoert, inclusief een stapsgewijs voorbeeld.","breadcrumb":{"@id":"https:\/\/statorials.org\/nl\/f-test-in-r\/#breadcrumb"},"inLanguage":"de","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/nl\/f-test-in-r\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/nl\/f-test-in-r\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Thuis","item":"https:\/\/statorials.org\/nl\/"},{"@type":"ListItem","position":2,"name":"Een f-test uitvoeren in r"}]},{"@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\/1094","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=1094"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/nl\/wp-json\/wp\/v2\/posts\/1094\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/nl\/wp-json\/wp\/v2\/media?parent=1094"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/nl\/wp-json\/wp\/v2\/categories?post=1094"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/nl\/wp-json\/wp\/v2\/tags?post=1094"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}