{"id":4534,"date":"2023-07-10T08:12:59","date_gmt":"2023-07-10T08:12:59","guid":{"rendered":"https:\/\/statorials.org\/nl\/z-test-met-twee-proporties-in-luchtsluis\/"},"modified":"2023-07-10T08:12:59","modified_gmt":"2023-07-10T08:12:59","slug":"z-test-met-twee-proporties-in-luchtsluis","status":"publish","type":"post","link":"https:\/\/statorials.org\/nl\/z-test-met-twee-proporties-in-luchtsluis\/","title":{"rendered":"Hoe u een z-test met twee proporties uitvoert in sas"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\">Een <strong>z-test met twee proporties<\/strong> wordt gebruikt om te bepalen of er een statistisch significant verschil bestaat tussen twee populatieproporties.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Deze test maakt gebruik van de volgende nulhypothese:<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\"><strong>H <sub>0<\/sub> :<\/strong> \u03bc <sub>1<\/sub> = \u03bc <sub>2<\/sub> (de twee populatieverhoudingen zijn gelijk)<\/span><\/li>\n<\/ul>\n<p> <span style=\"color: #000000;\">De alternatieve hypothese kan bilateraal, links of rechts zijn:<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\"><strong>H <sub>1<\/sub> (tweezijdig):<\/strong> \u03c0 <strong><sub>1<\/sub><\/strong> \u2260 \u03c0 <sub>2<\/sub> (de twee populatieverhoudingen zijn niet gelijk)<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>H <sub>1<\/sub> (links):<\/strong> \u03c0 <sub>1<\/sub> &lt; \u03c0 <sub>2<\/sub> (het aandeel van bevolking 1 is kleiner dan het aandeel van bevolking 2)<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>H <sub>1<\/sub> (rechts):<\/strong> \u03c0 <strong><sub>1<\/sub><\/strong> &gt; \u03c0 <sub>2<\/sub> (het aandeel van bevolking 1 is groter dan het aandeel van bevolking 2)<\/span><\/li>\n<\/ul>\n<p> <span style=\"color: #000000;\">We gebruiken de volgende formule om de z-teststatistiek te berekenen:<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>z<\/strong> = (p <sub>1<\/sub> -p <sub>2<\/sub> ) \/ \u221a <span style=\"border-top: 1px solid black;\">p(1-p)(1\/n <sub>1<\/sub> +1\/n <sub>2<\/sub> )<\/span><\/span><\/p>\n<p> <span style=\"color: #000000;\">waarbij p <sub>1<\/sub> en p <sub>2<\/sub> de steekproefverhoudingen zijn, n <sub>1<\/sub> en n <sub>2<\/sub> de steekproefomvang zijn, en waarbij p het totale gepoolde aandeel is, als volgt berekend:<\/span><\/p>\n<p> <span style=\"color: #000000;\">p = (p <sub>1<\/sub> n <sub>1<\/sub> + p <sub>2<\/sub> n <sub>2<\/sub> )\/(n <sub>1<\/sub> + n <sub>2<\/sub> )<\/span><\/p>\n<p> <span style=\"color: #000000;\">Als de p-waarde die overeenkomt met de z-teststatistiek kleiner is dan het gekozen significantieniveau (veel voorkomende keuzes zijn 0,10, 0,05 en 0,01), dan kun je de nulhypothese verwerpen.<\/span><\/p>\n<p> <span style=\"color: #000000;\">In het volgende voorbeeld ziet u hoe u een z-test met twee proporties uitvoert in SAS.<\/span><\/p>\n<h2> <strong><span style=\"color: #000000;\">Voorbeeld: Z-test met twee proporties in SAS<\/span><\/strong><\/h2>\n<p> <span style=\"color: #000000;\">Stel dat we willen weten of er een verschil is tussen het aandeel inwoners dat een bepaalde wet in County A steunt, en het aandeel dat de wet in County B steunt.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Om dit te testen, verzamelen we een willekeurige steekproef van 50 inwoners uit elke provincie en tellen we hoeveel inwoners de wet steunen.<\/span><\/p>\n<p> <span style=\"color: #000000;\">De volgende code laat zien hoe u een gegevensset kunt maken met een samenvatting van het aantal inwoners dat de wet in elke provincie ondersteunt:<\/span> <\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008000;\">\/*create dataset*\/\n<\/span><span style=\"color: #800080;\">data<\/span> my_data;\n    <span style=\"color: #3366ff;\">input<\/span> county $status $count;\n    <span style=\"color: #3366ff;\">datalines<\/span> ;\nA Bracket 34\nA Reject 16\nB Bracket 29\nB Reject 21\n;\n<span style=\"color: #800080;\">run<\/span> ;\n\n<span style=\"color: #008000;\">\/*view dataset*\/\n<\/span><span style=\"color: #800080;\">proc print<\/span> <span style=\"color: #3366ff;\">data<\/span> =my_data;\n<\/strong><\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" class=\" wp-image-35419 aligncenter\" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/zsas1.png\" alt=\"\" width=\"256\" height=\"152\" srcset=\"\" sizes=\"auto, \"><\/p>\n<p> <span style=\"color: #000000;\">We kunnen dan de <strong>PROC FREQ-<\/strong> instructie gebruiken met de optie <strong>Riskdiff (equal var = null)<\/strong> om de z-test met twee proporties uit te voeren:<\/span> <\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #000000;\"><strong><span style=\"color: #008000;\">\/*perform two proportion z-test*\/\n<\/span><span style=\"color: #800080;\">proc freq<\/span> <span style=\"color: #3366ff;\">data<\/span> =my_data;\n    <span style=\"color: #3366ff;\">weightcount<\/span> ;\n    county <span style=\"color: #3366ff;\">tables<\/span> * status \/ <span style=\"color: #3366ff;\">riskdiff<\/span> ( <span style=\"color: #3366ff;\">equal var<\/span> = null);\n<span style=\"color: #800080;\">run<\/span> ;<\/strong><\/span> <\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-35420\" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/zsas2.png\" alt=\"z-test met twee proporties in SAS\" width=\"450\" height=\"728\" srcset=\"\" sizes=\"auto, \"><\/p>\n<p> <span style=\"color: #000000;\">Uit de tabel <strong>Risicoverschiltest<\/strong> in resultaat kunnen we de volgende informatie zien:<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\">Z-teststatistiek: <strong>-1,0356<\/strong><\/span><\/li>\n<li> <span style=\"color: #000000;\">Tweezijdige p-waarde: <strong>0,3004<\/strong><\/span><\/li>\n<\/ul>\n<p> <span style=\"color: #000000;\">Deze specifieke z-test met twee proporties maakte gebruik van de volgende aannames:<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\"><strong>H <sub>0<\/sub> :<\/strong> \u03c0 <strong><sub>1<\/sub><\/strong> = \u03c0 <sub>2<\/sub> (de twee populatieverhoudingen zijn gelijk)<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>H <sub>1<\/sub> :<\/strong> \u03c0 <strong><sub>1<\/sub><\/strong> \u2260 \u03c0 <sub>2<\/sub> (de twee populatieverhoudingen zijn niet gelijk)<\/span><\/li>\n<\/ul>\n<p> <span style=\"color: #000000;\">Omdat de p-waarde in de output niet kleiner is dan 0,05, slagen we er niet in de nulhypothese te verwerpen.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Dit betekent dat we niet voldoende bewijs hebben om te zeggen dat het aandeel inwoners dat deze wet steunt, verschillend is tussen de twee provincies.<\/span><\/p>\n<h2> <span style=\"color: #000000;\"><strong>Aanvullende bronnen<\/strong><\/span><\/h2>\n<p> <span style=\"color: #000000;\">In de volgende zelfstudies wordt uitgelegd hoe u andere algemene statistische tests in SAS kunt uitvoeren:<\/span><\/p>\n<p> <span style=\"color: #000000;\"><a href=\"https:\/\/statorials.org\/nl\/een-proefmonster-in-een-luchtsluis\/\" target=\"_blank\" rel=\"noopener\">Hoe u een t-test met \u00e9\u00e9n monster uitvoert in SAS<\/a><br \/> Hoe u een t-test met twee steekproeven uitvoert in SAS<br \/> <a href=\"https:\/\/statorials.org\/nl\/gepaarde-t-test-in-sas\/\" target=\"_blank\" rel=\"noopener\">Een t-test met gepaarde monsters uitvoeren in SAS<\/a><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Een z-test met twee proporties wordt gebruikt om te bepalen of er een statistisch significant verschil bestaat tussen twee populatieproporties. Deze test maakt gebruik van de volgende nulhypothese: H 0 : \u03bc 1 = \u03bc 2 (de twee populatieverhoudingen zijn gelijk) De alternatieve hypothese kan bilateraal, links of rechts zijn: H 1 (tweezijdig): \u03c0 1 [&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-4534","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 Z-test met twee proporties uitvoeren in SAS - Statorials<\/title>\n<meta name=\"description\" content=\"In deze zelfstudie wordt uitgelegd hoe u een z-test met twee proporties uitvoert in SAS, met verschillende voorbeelden.\" \/>\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\/z-test-met-twee-proporties-in-luchtsluis\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Een Z-test met twee proporties uitvoeren in SAS - Statorials\" \/>\n<meta property=\"og:description\" content=\"In deze zelfstudie wordt uitgelegd hoe u een z-test met twee proporties uitvoert in SAS, met verschillende voorbeelden.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/nl\/z-test-met-twee-proporties-in-luchtsluis\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-10T08:12:59+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/zsas1.png\" \/>\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\/z-test-met-twee-proporties-in-luchtsluis\/\",\"url\":\"https:\/\/statorials.org\/nl\/z-test-met-twee-proporties-in-luchtsluis\/\",\"name\":\"Een Z-test met twee proporties uitvoeren in SAS - Statorials\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/nl\/#website\"},\"datePublished\":\"2023-07-10T08:12:59+00:00\",\"dateModified\":\"2023-07-10T08:12:59+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/nl\/#\/schema\/person\/d4b8842173cca1bb62cdec41860e4219\"},\"description\":\"In deze zelfstudie wordt uitgelegd hoe u een z-test met twee proporties uitvoert in SAS, met verschillende voorbeelden.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/nl\/z-test-met-twee-proporties-in-luchtsluis\/#breadcrumb\"},\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/nl\/z-test-met-twee-proporties-in-luchtsluis\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/nl\/z-test-met-twee-proporties-in-luchtsluis\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Thuis\",\"item\":\"https:\/\/statorials.org\/nl\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Hoe u een z-test met twee proporties uitvoert in sas\"}]},{\"@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 Z-test met twee proporties uitvoeren in SAS - Statorials","description":"In deze zelfstudie wordt uitgelegd hoe u een z-test met twee proporties uitvoert in SAS, met verschillende voorbeelden.","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\/z-test-met-twee-proporties-in-luchtsluis\/","og_locale":"de_DE","og_type":"article","og_title":"Een Z-test met twee proporties uitvoeren in SAS - Statorials","og_description":"In deze zelfstudie wordt uitgelegd hoe u een z-test met twee proporties uitvoert in SAS, met verschillende voorbeelden.","og_url":"https:\/\/statorials.org\/nl\/z-test-met-twee-proporties-in-luchtsluis\/","og_site_name":"Statorials","article_published_time":"2023-07-10T08:12:59+00:00","og_image":[{"url":"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/zsas1.png"}],"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\/z-test-met-twee-proporties-in-luchtsluis\/","url":"https:\/\/statorials.org\/nl\/z-test-met-twee-proporties-in-luchtsluis\/","name":"Een Z-test met twee proporties uitvoeren in SAS - Statorials","isPartOf":{"@id":"https:\/\/statorials.org\/nl\/#website"},"datePublished":"2023-07-10T08:12:59+00:00","dateModified":"2023-07-10T08:12:59+00:00","author":{"@id":"https:\/\/statorials.org\/nl\/#\/schema\/person\/d4b8842173cca1bb62cdec41860e4219"},"description":"In deze zelfstudie wordt uitgelegd hoe u een z-test met twee proporties uitvoert in SAS, met verschillende voorbeelden.","breadcrumb":{"@id":"https:\/\/statorials.org\/nl\/z-test-met-twee-proporties-in-luchtsluis\/#breadcrumb"},"inLanguage":"de","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/nl\/z-test-met-twee-proporties-in-luchtsluis\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/nl\/z-test-met-twee-proporties-in-luchtsluis\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Thuis","item":"https:\/\/statorials.org\/nl\/"},{"@type":"ListItem","position":2,"name":"Hoe u een z-test met twee proporties uitvoert in sas"}]},{"@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\/4534","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=4534"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/nl\/wp-json\/wp\/v2\/posts\/4534\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/nl\/wp-json\/wp\/v2\/media?parent=4534"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/nl\/wp-json\/wp\/v2\/categories?post=4534"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/nl\/wp-json\/wp\/v2\/tags?post=4534"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}