{"id":435,"date":"2023-07-29T22:47:58","date_gmt":"2023-07-29T22:47:58","guid":{"rendered":"https:\/\/statorials.org\/de\/mcnemars-testrechner\/"},"modified":"2023-07-29T22:47:58","modified_gmt":"2023-07-29T22:47:58","slug":"mcnemars-testrechner","status":"publish","type":"post","link":"https:\/\/statorials.org\/de\/mcnemars-testrechner\/","title":{"rendered":"Mcnemar-testrechner"},"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>Der McNemar-Test<\/b> wird verwendet, um zu \u00fcberpr\u00fcfen, ob die Z\u00e4hlungen zwischen zwei Gruppen konsistent sind oder nicht. Es wird h\u00e4ufig verwendet, um zu testen, ob die Zahlen zwischen einer Behandlungsgruppe und einer Kontrollgruppe gleich sind.<\/p>\n<p style=\"text-align: left\"> Gegeben sei die folgende 2&#215;2-Tabelle: <\/p>\n<p style=\"text-align: center\"><img decoding=\"async\" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/exemple_mcnemar.png\" alt=\"McNemar-Testbeispiel\" srcset=\"\" sizes=\"\"><\/p>\n<p style=\"text-align: left\"> Die Teststatistik X <sup>2<\/sup> wird als (|bc|-1) <sup>2<\/sup> \/ (b+c) berechnet und folgt einer Chi-Quadrat-Verteilung mit einem Freiheitsgrad.<\/p>\n<p style=\"text-align: left\"> Um den McNemar-Test f\u00fcr einen bestimmten Datensatz durchzuf\u00fchren, geben Sie einfach die Werte in die Zellen unten ein und klicken Sie dann auf die Schaltfl\u00e4che \u201eBerechnen\u201c. <\/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\"> Test 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\"> Positiv<\/td>\n<td class=\"outcome_labels\"> Negativ<\/td>\n<\/tr>\n<tr>\n<td class=\"outcome_labels_header_b\" rowspan=\"2\"> Versuch 1<\/td>\n<td class=\"outcome_labels\"> <span>Positiv<\/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>Negativ<\/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>Der McNemar-Test wird verwendet, um zu \u00fcberpr\u00fcfen, ob die Z\u00e4hlungen zwischen zwei Gruppen konsistent sind oder nicht. Es wird h\u00e4ufig verwendet, um zu testen, ob die Zahlen zwischen einer Behandlungsgruppe und einer Kontrollgruppe gleich sind. Gegeben sei die folgende 2&#215;2-Tabelle: Die Teststatistik X 2 wird als (|bc|-1) 2 \/ (b+c) berechnet und folgt einer Chi-Quadrat-Verteilung [&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":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>McNemar-Testrechner \u2013 Statistik<\/title>\n<meta name=\"description\" content=\"Dieser Rechner f\u00fchrt den McNemar-Test f\u00fcr einen bestimmten Datensatz durch, der testet, ob die Z\u00e4hlungen zwischen zwei Gruppen konsistent sind oder nicht.\" \/>\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\/de\/mcnemars-testrechner\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"McNemar-Testrechner \u2013 Statistik\" \/>\n<meta property=\"og:description\" content=\"Dieser Rechner f\u00fchrt den McNemar-Test f\u00fcr einen bestimmten Datensatz durch, der testet, ob die Z\u00e4hlungen zwischen zwei Gruppen konsistent sind oder nicht.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/de\/mcnemars-testrechner\/\" \/>\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\/de\/mcnemars-testrechner\/\",\"url\":\"https:\/\/statorials.org\/de\/mcnemars-testrechner\/\",\"name\":\"McNemar-Testrechner \u2013 Statistik\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/de\/#website\"},\"datePublished\":\"2023-07-29T22:47:58+00:00\",\"dateModified\":\"2023-07-29T22:47:58+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/de\/#\/schema\/person\/ec75c4d6365f2708f8a0ad3a42121aa0\"},\"description\":\"Dieser Rechner f\u00fchrt den McNemar-Test f\u00fcr einen bestimmten Datensatz durch, der testet, ob die Z\u00e4hlungen zwischen zwei Gruppen konsistent sind oder nicht.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/de\/mcnemars-testrechner\/#breadcrumb\"},\"inLanguage\":\"de-DE\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/de\/mcnemars-testrechner\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/de\/mcnemars-testrechner\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Heim\",\"item\":\"https:\/\/statorials.org\/de\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Mcnemar-testrechner\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/statorials.org\/de\/#website\",\"url\":\"https:\/\/statorials.org\/de\/\",\"name\":\"Statorials\",\"description\":\"Ihr Leitfaden f\u00fcr statistische Kompetenz !\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/statorials.org\/de\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"de-DE\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/statorials.org\/de\/#\/schema\/person\/ec75c4d6365f2708f8a0ad3a42121aa0\",\"name\":\"Dr. Benjamin Anderson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de-DE\",\"@id\":\"https:\/\/statorials.org\/de\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/statorials.org\/de\/wp-content\/uploads\/2023\/11\/Benjamin-Anderson-96x96.jpg\",\"contentUrl\":\"https:\/\/statorials.org\/de\/wp-content\/uploads\/2023\/11\/Benjamin-Anderson-96x96.jpg\",\"caption\":\"Dr. Benjamin Anderson\"},\"description\":\"Hallo, ich bin Benjamin, ein pensionierter Statistikprofessor, der sich zum engagierten Statorials-Lehrer entwickelt hat. Mit umfassender Erfahrung und Fachwissen auf dem Gebiet der Statistik bin ich bestrebt, mein Wissen zu teilen, um Studenten durch Statorials zu bef\u00e4higen. Mehr wissen\",\"sameAs\":[\"https:\/\/statorials.org\/de\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"McNemar-Testrechner \u2013 Statistik","description":"Dieser Rechner f\u00fchrt den McNemar-Test f\u00fcr einen bestimmten Datensatz durch, der testet, ob die Z\u00e4hlungen zwischen zwei Gruppen konsistent sind oder nicht.","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\/de\/mcnemars-testrechner\/","og_locale":"de_DE","og_type":"article","og_title":"McNemar-Testrechner \u2013 Statistik","og_description":"Dieser Rechner f\u00fchrt den McNemar-Test f\u00fcr einen bestimmten Datensatz durch, der testet, ob die Z\u00e4hlungen zwischen zwei Gruppen konsistent sind oder nicht.","og_url":"https:\/\/statorials.org\/de\/mcnemars-testrechner\/","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\/de\/mcnemars-testrechner\/","url":"https:\/\/statorials.org\/de\/mcnemars-testrechner\/","name":"McNemar-Testrechner \u2013 Statistik","isPartOf":{"@id":"https:\/\/statorials.org\/de\/#website"},"datePublished":"2023-07-29T22:47:58+00:00","dateModified":"2023-07-29T22:47:58+00:00","author":{"@id":"https:\/\/statorials.org\/de\/#\/schema\/person\/ec75c4d6365f2708f8a0ad3a42121aa0"},"description":"Dieser Rechner f\u00fchrt den McNemar-Test f\u00fcr einen bestimmten Datensatz durch, der testet, ob die Z\u00e4hlungen zwischen zwei Gruppen konsistent sind oder nicht.","breadcrumb":{"@id":"https:\/\/statorials.org\/de\/mcnemars-testrechner\/#breadcrumb"},"inLanguage":"de-DE","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/de\/mcnemars-testrechner\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/de\/mcnemars-testrechner\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Heim","item":"https:\/\/statorials.org\/de\/"},{"@type":"ListItem","position":2,"name":"Mcnemar-testrechner"}]},{"@type":"WebSite","@id":"https:\/\/statorials.org\/de\/#website","url":"https:\/\/statorials.org\/de\/","name":"Statorials","description":"Ihr Leitfaden f\u00fcr statistische Kompetenz !","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/statorials.org\/de\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"de-DE"},{"@type":"Person","@id":"https:\/\/statorials.org\/de\/#\/schema\/person\/ec75c4d6365f2708f8a0ad3a42121aa0","name":"Dr. Benjamin Anderson","image":{"@type":"ImageObject","inLanguage":"de-DE","@id":"https:\/\/statorials.org\/de\/#\/schema\/person\/image\/","url":"https:\/\/statorials.org\/de\/wp-content\/uploads\/2023\/11\/Benjamin-Anderson-96x96.jpg","contentUrl":"https:\/\/statorials.org\/de\/wp-content\/uploads\/2023\/11\/Benjamin-Anderson-96x96.jpg","caption":"Dr. Benjamin Anderson"},"description":"Hallo, ich bin Benjamin, ein pensionierter Statistikprofessor, der sich zum engagierten Statorials-Lehrer entwickelt hat. Mit umfassender Erfahrung und Fachwissen auf dem Gebiet der Statistik bin ich bestrebt, mein Wissen zu teilen, um Studenten durch Statorials zu bef\u00e4higen. Mehr wissen","sameAs":["https:\/\/statorials.org\/de"]}]}},"yoast_meta":{"yoast_wpseo_title":"","yoast_wpseo_metadesc":"","yoast_wpseo_canonical":""},"_links":{"self":[{"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/posts\/435"}],"collection":[{"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/comments?post=435"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/posts\/435\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/media?parent=435"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/categories?post=435"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/tags?post=435"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}