{"id":437,"date":"2023-07-29T22:47:58","date_gmt":"2023-07-29T22:47:58","guid":{"rendered":"https:\/\/statorials.org\/nl\/mcnemars-testcalculator\/"},"modified":"2023-07-29T22:47:58","modified_gmt":"2023-07-29T22:47:58","slug":"mcnemars-testcalculator","status":"publish","type":"post","link":"https:\/\/statorials.org\/nl\/mcnemars-testcalculator\/","title":{"rendered":"Mcnemar-testcalculator"},"content":{"rendered":"<p><script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/mathjs\/5.1.1\/math.js\"><\/script><script src=\"https:\/\/cdn.jsdelivr.net\/npm\/jstat@latest\/dist\/jstat.min.js\"><\/script><\/p>\n<style>\n@import url('https:\/\/fonts.googleapis.com\/css?family=Droid+Serif|Raleway');<\/p>\n<p>.axis--y .domain {\n  display: none;\n}<\/p>\n<p>h1 {\ncolor: black;\ntext-align: center;\nmargin-bottom: 0px;\nmargin-top: 15px;\nfont-family: 'Raleway', sans-serif;\n}<\/p>\n<p>p {\ncolor: black;\ntext-align: center;\nmargin-bottom: 15px;\nmargin-top: 15px;\nfont-family: 'Raleway', sans-serif;\n}<\/p>\n<p>#words {\ncolor: black;\nfont-family: Raleway;\nmax-width: 550px;\nmargin: 25px auto;\nline-height: 1.75;\n}<\/p>\n<p>#words_text_area {\ndisplay:inline-block;\ncolor: black;\nfont-family: Raleway;\nmax-width: 550px;\nmargin: 25px auto;\nline-height: 1.75;\npadding-left: 100px;\n}<\/p>\n<p>#calcTitle {\ntext-align: center;\nfont-size: 20px;\nmargin-bottom: 0px;\nfont-family: 'Raleway', serif;\n}<\/p>\n<p>#hr_top {\nwidth: 30%;\nmargin-bottom: 0px;\nborder: none;\nheight: 2px;\ncolor: black;\nbackground-color: black;\n}<\/p>\n<p>#hr_bottom {\nwidth: 30%;\nmargin-top: 15px;\nborder: none;\nheight: 2px;\ncolor: black;\nbackground-color: black;\n}<\/p>\n<p>#words label, input {\n    display: inline-block;\n    vertical-align: baseline;\n    width: 350px;\n}<\/p>\n<p>    #button {\n      border: 1px solid;\n      border-radius: 10px;\n      margin-top: 20px;<\/p>\n<p>      cursor: pointer;\n      outline: none;\n      background-color: white;\n      color: black;\n      font-family: 'Work Sans', sans-serif;\n      border: 1px solid grey;\n      \/* Green *\/\n    }<\/p>\n<p>    #button:hover {\n      background-color: #f6f6f6;\n      border: 1px solid black;\n    }<\/p>\n<p>\t.label_radio {\n\ttext-align: center;\n    }<\/p>\n<p>td, tr, th {\n    border: 1px solid black;\n}\ntable {\n    border-collapse: collapse;\n}\ntd, th {\n    min-width: 40px;\n    height: 15px;\n}\n.prob, .freq {\n    width: 100%;\n    display: block;\n}<\/p>\n<p>.outcome_labels {\n    text-align: center;\n    background-color: #ddd;\n    font-weight: bold;\n}<\/p>\n<p>.outcome_labels_blank {\n    visibility: hidden;\n}<\/p>\n<p>.outcome_labels_header {\n    text-align: center;\n    background-color: #adf4eb;\n    font-weight: bold;\n    border-top: black 1px solid;\n}<\/p>\n<p>.outcome_labels_header_b {\n    vertical-align: middle;\n    text-align: center;\n    background-color: #adf4eb;\n    font-weight: bold;\n}<\/p>\n<p>#words_table {\ncolor: black;\nfont-family: Raleway;\nmax-width: 350px;\nmargin: 25px auto;\nline-height: 1.75;\n}<\/p>\n<p>#summary_table {\ncolor: black;\nfont-family: Raleway;\nmax-width: 550px;\nmargin: 25px auto;\nline-height: 1.75;\npadding-left: 20px;\n}<\/p>\n<p>    .label_radio {\n\ttext-align: center;\n}\n<\/style>\n<div id=\"words\">\n<p style=\"text-align: left\"><b>De McNemar-test<\/b> wordt gebruikt om te controleren of de tellingen tussen twee groepen consistent zijn. Het wordt vaak gebruikt om te testen of de tellingen tussen een behandelgroep en een controlegroep gelijk zijn.<\/p>\n<p style=\"text-align: left\"> Gegeven de volgende 2&#215;2 tabel: <\/p>\n<p style=\"text-align: center\"><img decoding=\"async\" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/exemple_mcnemar.png\" alt=\"McNemar-testvoorbeeld\" srcset=\"\" sizes=\"\"><\/p>\n<p style=\"text-align: left\"> De teststatistiek X <sup>2<\/sup> wordt berekend als (|bc|-1) <sup>2<\/sup> \/ (b+c) en volgt een chikwadraatverdeling met \u00e9\u00e9n vrijheidsgraad.<\/p>\n<p style=\"text-align: left\"> Om de McNemar-test voor een bepaalde dataset uit te voeren, voert u eenvoudigweg de waarden in de onderstaande cellen in en drukt u vervolgens op de knop \u2018Berekenen\u2019. <\/p>\n<\/div>\n<div id=\"words_table\">\n<table>\n<tbody>\n<tr>\n<td class=\"outcome_labels_blank\"><\/td>\n<td class=\"outcome_labels_blank\"><\/td>\n<td class=\"outcome_labels_header\" colspan=\"2\"> Proef 2 <\/td>\n<\/tr>\n<tr>\n<td class=\"outcome_labels_blank\"><\/td>\n<td class=\"outcome_labels_blank\"><\/td>\n<td class=\"outcome_labels\"> Positief<\/td>\n<td class=\"outcome_labels\"> Negatief<\/td>\n<\/tr>\n<tr>\n<td class=\"outcome_labels_header_b\" rowspan=\"2\"> Proef 1<\/td>\n<td class=\"outcome_labels\"> <span>Positief<\/span> <\/td>\n<td><span class=\"prob b1a1\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"freq b0a1\" contenteditable=\"\"><\/span><\/td>\n<\/tr>\n<tr>\n<td class=\"outcome_labels\"><span>Negatief<\/span> <\/td>\n<td><span class=\"prob b1a0\" contenteditable=\"\"><\/span><\/td>\n<td><span class=\"freq b0a0\" contenteditable=\"\"><\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div id=\"words_table\"><input type=\"button\" id=\"button\" onclick=\"calc()\" value=\"Calculate\"><\/div>\n<div>\n<p><span id=\"chi2\"><\/span><\/p>\n<\/div>\n<div>\n<p><span id=\"p\"><\/span><\/p>\n<\/div>\n<p><script><\/p>\n<p>\/\/create function that performs calculations\nfunction calc() {<\/p>\n<p>\/\/get data\nvar b1a1 = document.getElementsByClassName('b1a1')[0].innerText*1;\nvar b1a0 = document.getElementsByClassName('b1a0')[0].innerText*1;\nvar b0a1 = document.getElementsByClassName('b0a1')[0].innerText*1;\nvar b0a0 = document.getElementsByClassName('b0a0')[0].innerText*1;<\/p>\n<p>\/\/calculate test statistic, p-value\nvar chi2 = Math.pow(Math.abs(b0a1-b1a0) - 1, 2) \/ (b0a1-(-b1a0));\nvar p = 1 - jStat.chisquare.cdf(chi2, 1);<\/p>\n<p>\/\/output results\ndocument.getElementById('chi2').innerHTML = \"<b>Test statistic X<sup>2<\/sup> :<\/b> \" + \"(|\" + b0a1 + \"-\" + b1a0 + \"| - 1)<sup>2<\/sup> \/ (\" + b0a1 + \"+\" + b1a0 + \") = \" + chi2.toFixed(5);\ndocument.getElementById('p').innerHTML = \"<b>p-value:<\/b> \" + p.toFixed(5);<\/p>\n<p>}<\/p>\n<p><\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>De McNemar-test wordt gebruikt om te controleren of de tellingen tussen twee groepen consistent zijn. Het wordt vaak gebruikt om te testen of de tellingen tussen een behandelgroep en een controlegroep gelijk zijn. Gegeven de volgende 2&#215;2 tabel: De teststatistiek X 2 wordt berekend als (|bc|-1) 2 \/ (b+c) en volgt een chikwadraatverdeling met \u00e9\u00e9n [&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-437","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>McNemar-testcalculator - Statorials<\/title>\n<meta name=\"description\" content=\"Deze rekenmachine voert de McNemar-test uit voor een bepaalde dataset, waarbij wordt getest of de tellingen tussen twee groepen consistent zijn.\" \/>\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\/mcnemars-testcalculator\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"McNemar-testcalculator - Statorials\" \/>\n<meta property=\"og:description\" content=\"Deze rekenmachine voert de McNemar-test uit voor een bepaalde dataset, waarbij wordt getest of de tellingen tussen twee groepen consistent zijn.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/nl\/mcnemars-testcalculator\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-29T22:47:58+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/exemple_mcnemar.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<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/statorials.org\/nl\/mcnemars-testcalculator\/\",\"url\":\"https:\/\/statorials.org\/nl\/mcnemars-testcalculator\/\",\"name\":\"McNemar-testcalculator - Statorials\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/nl\/#website\"},\"datePublished\":\"2023-07-29T22:47:58+00:00\",\"dateModified\":\"2023-07-29T22:47:58+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/nl\/#\/schema\/person\/d4b8842173cca1bb62cdec41860e4219\"},\"description\":\"Deze rekenmachine voert de McNemar-test uit voor een bepaalde dataset, waarbij wordt getest of de tellingen tussen twee groepen consistent zijn.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/nl\/mcnemars-testcalculator\/#breadcrumb\"},\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/nl\/mcnemars-testcalculator\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/nl\/mcnemars-testcalculator\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Thuis\",\"item\":\"https:\/\/statorials.org\/nl\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Mcnemar-testcalculator\"}]},{\"@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":"McNemar-testcalculator - Statorials","description":"Deze rekenmachine voert de McNemar-test uit voor een bepaalde dataset, waarbij wordt getest of de tellingen tussen twee groepen consistent zijn.","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\/mcnemars-testcalculator\/","og_locale":"de_DE","og_type":"article","og_title":"McNemar-testcalculator - Statorials","og_description":"Deze rekenmachine voert de McNemar-test uit voor een bepaalde dataset, waarbij wordt getest of de tellingen tussen twee groepen consistent zijn.","og_url":"https:\/\/statorials.org\/nl\/mcnemars-testcalculator\/","og_site_name":"Statorials","article_published_time":"2023-07-29T22:47:58+00:00","og_image":[{"url":"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/exemple_mcnemar.png"}],"author":"Dr.benjamin anderson","twitter_card":"summary_large_image","twitter_misc":{"Verfasst von":"Dr.benjamin anderson"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/statorials.org\/nl\/mcnemars-testcalculator\/","url":"https:\/\/statorials.org\/nl\/mcnemars-testcalculator\/","name":"McNemar-testcalculator - Statorials","isPartOf":{"@id":"https:\/\/statorials.org\/nl\/#website"},"datePublished":"2023-07-29T22:47:58+00:00","dateModified":"2023-07-29T22:47:58+00:00","author":{"@id":"https:\/\/statorials.org\/nl\/#\/schema\/person\/d4b8842173cca1bb62cdec41860e4219"},"description":"Deze rekenmachine voert de McNemar-test uit voor een bepaalde dataset, waarbij wordt getest of de tellingen tussen twee groepen consistent zijn.","breadcrumb":{"@id":"https:\/\/statorials.org\/nl\/mcnemars-testcalculator\/#breadcrumb"},"inLanguage":"de","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/nl\/mcnemars-testcalculator\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/nl\/mcnemars-testcalculator\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Thuis","item":"https:\/\/statorials.org\/nl\/"},{"@type":"ListItem","position":2,"name":"Mcnemar-testcalculator"}]},{"@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\/437","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=437"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/nl\/wp-json\/wp\/v2\/posts\/437\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/nl\/wp-json\/wp\/v2\/media?parent=437"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/nl\/wp-json\/wp\/v2\/categories?post=437"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/nl\/wp-json\/wp\/v2\/tags?post=437"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}