{"id":1285,"date":"2023-07-27T00:26:21","date_gmt":"2023-07-27T00:26:21","guid":{"rendered":"https:\/\/statorials.org\/de\/cramers-v-in-r\/"},"modified":"2023-07-27T00:26:21","modified_gmt":"2023-07-27T00:26:21","slug":"cramers-v-in-r","status":"publish","type":"post","link":"https:\/\/statorials.org\/de\/cramers-v-in-r\/","title":{"rendered":"So berechnen sie cramers v in r"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\"><strong>Cramers V<\/strong> ist ein Ma\u00df f\u00fcr die St\u00e4rke der Assoziation zwischen zwei nominalen Variablen.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Es geht von 0 auf 1, wobei:<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\"><strong>0<\/strong> bedeutet, dass zwischen den beiden Variablen kein Zusammenhang besteht.<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>1<\/strong> weist auf einen starken Zusammenhang zwischen den beiden Variablen hin.<\/span><\/li>\n<\/ul>\n<p> <span style=\"color: #000000;\">Es wird wie folgt berechnet:<\/span><\/p>\n<p> <strong><span style=\"color: #000000;\">Cramers V = \u221a <span style=\"border-top: 1px solid black;\">(X <sup>2<\/sup> \/n) \/ min(c-1, r-1)<\/span><\/span><\/strong><\/p>\n<p> <span style=\"color: #000000;\">Gold:<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\"><strong>X <sup>2<\/sup> :<\/strong> Die Chi-Quadrat-Statistik<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>n:<\/strong> Gesamtstichprobengr\u00f6\u00dfe<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>r:<\/strong> Anzahl der Zeilen<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>c:<\/strong> Anzahl der Spalten<\/span><\/li>\n<\/ul>\n<p> <span style=\"color: #000000;\">Dieses Tutorial enth\u00e4lt einige Beispiele f\u00fcr die Berechnung von Cramers V f\u00fcr eine Kontingenztabelle in R.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>Beispiel 1: Cramers V f\u00fcr eine 2\u00d72-Tabelle<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">Der folgende Code zeigt, wie Sie die <strong>CramerV-<\/strong> Funktion aus dem <strong>rcompanion-<\/strong> Paket verwenden, um Cramers V f\u00fcr eine 2&#215;2-Tabelle zu berechnen:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#create 2x2 table\n<\/span>data = matrix(c(7,9,12,8), nrow = <span style=\"color: #008000;\">2<\/span> )\n\n<span style=\"color: #008080;\">#view dataset\n<\/span>data\n\n     [,1] [,2]\n[1,] 7 12\n[2,] 9 8\n\n<span style=\"color: #008080;\">#load rcompanion library\n<\/span>library(rcompanion)\n\n<span style=\"color: #008080;\">#calculate Cramer's V\n<\/span>cramerV(data)\n\nCramer V \n  0.1617<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">Es stellt sich heraus, dass Cramers V <strong>0,1617<\/strong> betr\u00e4gt, was auf eine ziemlich schwache Verbindung zwischen den beiden Variablen in der Tabelle hinweist.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Beachten Sie, dass wir auch ein Konfidenzintervall f\u00fcr Cramer&#8217;s V erstellen k\u00f6nnen, indem wir <strong>ci = TRUE<\/strong> setzen:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong>cramerV(data, ci = <span style=\"color: #008000;\">TRUE<\/span> )\n\n  Cramer.V lower.ci upper.ci\n1 0.1617 0.003487 0.4914\n<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">Wir k\u00f6nnen sehen, dass Cramers V unver\u00e4ndert bei <strong>0,1617<\/strong> bleibt, aber wir haben jetzt ein 95 %-Konfidenzintervall, das einen Wertebereich enth\u00e4lt, der wahrscheinlich den wahren Wert von Cramers V enth\u00e4lt.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Dieses Intervall betr\u00e4gt: [ <strong>.003487<\/strong> , <strong>.4914<\/strong> ].<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>Beispiel 2: Cramers V f\u00fcr gr\u00f6\u00dfere Tabellen<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">Beachten Sie, dass wir die <strong>CramerV-<\/strong> Funktion verwenden k\u00f6nnen, um Cramers V f\u00fcr ein Array beliebiger Gr\u00f6\u00dfe zu berechnen.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Der folgende Code zeigt, wie Cramers V f\u00fcr eine Tabelle mit 2 Zeilen und 3 Spalten berechnet wird:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#create 2x3 table\n<\/span>data = matrix(c(6, 9, 8, 5, 12, 9), nrow = <span style=\"color: #008000;\">2<\/span> )\n\n<span style=\"color: #008080;\">#view dataset\n<\/span>data\n\n     [,1] [,2] [,3]\n[1,] 6 8 12\n[2,] 9 5 9\n\n<span style=\"color: #008080;\">#load rcompanion library\n<\/span>library(rcompanion)\n\n<span style=\"color: #008080;\">#calculate Cramer's V\n<\/span>cramerV(data)\n\nCramer V \n  0.1775<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">Es stellt sich heraus, dass Cramers V <strong>0,1775<\/strong> betr\u00e4gt.<\/span><\/p>\n<p> <span style=\"color: #000000;\"><em>Die vollst\u00e4ndige Dokumentation der CramerV-Funktion finden Sie <a href=\"https:\/\/www.rdocumentation.org\/packages\/rcompanion\/versions\/2.3.26\/topics\/cramerV\" target=\"_blank\" rel=\"noopener\">hier<\/a> .<\/em><\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>Zus\u00e4tzliche Ressourcen<\/strong><\/span><\/h3>\n<p> <a href=\"https:\/\/statorials.org\/de\/chi-quadrat-unabhangigkeitstest-in-r\/\" target=\"_blank\" rel=\"noopener\">Chi-Quadrat-Test der Unabh\u00e4ngigkeit in R<\/a><br \/><a href=\"https:\/\/statorials.org\/de\/chi-quadrat-anpassungstest-in-r\/\" target=\"_blank\" rel=\"noopener\">Chi-Quadrat-Anpassungstest in R<\/a><br \/> <a href=\"https:\/\/statorials.org\/de\/genauer-test-der-fischer-in-r\/\" target=\"_blank\" rel=\"noopener\">Fishers genauer Test in R<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Cramers V ist ein Ma\u00df f\u00fcr die St\u00e4rke der Assoziation zwischen zwei nominalen Variablen. Es geht von 0 auf 1, wobei: 0 bedeutet, dass zwischen den beiden Variablen kein Zusammenhang besteht. 1 weist auf einen starken Zusammenhang zwischen den beiden Variablen hin. Es wird wie folgt berechnet: Cramers V = \u221a (X 2 \/n) \/ [&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>So berechnen Sie Cramer&#039;s V in R - Statorials<\/title>\n<meta name=\"description\" content=\"In diesem Tutorial wird anhand eines Beispiels erl\u00e4utert, wie Cramers V in R berechnet wird.\" \/>\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\/cramers-v-in-r\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"So berechnen Sie Cramer&#039;s V in R - Statorials\" \/>\n<meta property=\"og:description\" content=\"In diesem Tutorial wird anhand eines Beispiels erl\u00e4utert, wie Cramers V in R berechnet wird.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/de\/cramers-v-in-r\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-27T00:26:21+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 Minuten\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/statorials.org\/de\/cramers-v-in-r\/\",\"url\":\"https:\/\/statorials.org\/de\/cramers-v-in-r\/\",\"name\":\"So berechnen Sie Cramer&#39;s V in R - Statorials\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/de\/#website\"},\"datePublished\":\"2023-07-27T00:26:21+00:00\",\"dateModified\":\"2023-07-27T00:26:21+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/de\/#\/schema\/person\/ec75c4d6365f2708f8a0ad3a42121aa0\"},\"description\":\"In diesem Tutorial wird anhand eines Beispiels erl\u00e4utert, wie Cramers V in R berechnet wird.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/de\/cramers-v-in-r\/#breadcrumb\"},\"inLanguage\":\"de-DE\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/de\/cramers-v-in-r\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/de\/cramers-v-in-r\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Heim\",\"item\":\"https:\/\/statorials.org\/de\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"So berechnen sie cramers v in r\"}]},{\"@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":"So berechnen Sie Cramer&#39;s V in R - Statorials","description":"In diesem Tutorial wird anhand eines Beispiels erl\u00e4utert, wie Cramers V in R berechnet wird.","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\/cramers-v-in-r\/","og_locale":"de_DE","og_type":"article","og_title":"So berechnen Sie Cramer&#39;s V in R - Statorials","og_description":"In diesem Tutorial wird anhand eines Beispiels erl\u00e4utert, wie Cramers V in R berechnet wird.","og_url":"https:\/\/statorials.org\/de\/cramers-v-in-r\/","og_site_name":"Statorials","article_published_time":"2023-07-27T00:26:21+00:00","author":"Dr. Benjamin Anderson","twitter_card":"summary_large_image","twitter_misc":{"Verfasst von":"Dr. Benjamin Anderson","Gesch\u00e4tzte Lesezeit":"2 Minuten"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/statorials.org\/de\/cramers-v-in-r\/","url":"https:\/\/statorials.org\/de\/cramers-v-in-r\/","name":"So berechnen Sie Cramer&#39;s V in R - Statorials","isPartOf":{"@id":"https:\/\/statorials.org\/de\/#website"},"datePublished":"2023-07-27T00:26:21+00:00","dateModified":"2023-07-27T00:26:21+00:00","author":{"@id":"https:\/\/statorials.org\/de\/#\/schema\/person\/ec75c4d6365f2708f8a0ad3a42121aa0"},"description":"In diesem Tutorial wird anhand eines Beispiels erl\u00e4utert, wie Cramers V in R berechnet wird.","breadcrumb":{"@id":"https:\/\/statorials.org\/de\/cramers-v-in-r\/#breadcrumb"},"inLanguage":"de-DE","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/de\/cramers-v-in-r\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/de\/cramers-v-in-r\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Heim","item":"https:\/\/statorials.org\/de\/"},{"@type":"ListItem","position":2,"name":"So berechnen sie cramers v in r"}]},{"@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\/1285"}],"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=1285"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/posts\/1285\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/media?parent=1285"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/categories?post=1285"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/tags?post=1285"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}