{"id":2016,"date":"2023-07-24T01:57:10","date_gmt":"2023-07-24T01:57:10","guid":{"rendered":"https:\/\/statorials.org\/de\/spearman-korrelation-in-r\/"},"modified":"2023-07-24T01:57:10","modified_gmt":"2023-07-24T01:57:10","slug":"spearman-korrelation-in-r","status":"publish","type":"post","link":"https:\/\/statorials.org\/de\/spearman-korrelation-in-r\/","title":{"rendered":"So berechnen sie die spearman-rangkorrelation in r"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\">In der Statistik bezeichnet <strong>Korrelation<\/strong> die St\u00e4rke und Richtung einer Beziehung zwischen zwei Variablen. Der Wert eines Korrelationskoeffizienten kann zwischen -1 und 1 liegen, mit folgenden Interpretationen:<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\"><strong>-1:<\/strong> eine perfekte negative Beziehung zwischen zwei Variablen<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>0:<\/strong> keine Beziehung zwischen zwei Variablen<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>1:<\/strong> eine perfekte positive Beziehung zwischen zwei Variablen<\/span><\/li>\n<\/ul>\n<p> <span style=\"color: #000000;\">Eine besondere Art der Korrelation ist die <strong>Spearman-Rangkorrelation<\/strong> , mit der die Korrelation zwischen zwei Rangvariablen gemessen wird. (z. B. die Rangfolge der Mathematikpr\u00fcfungsergebnisse eines Sch\u00fclers im Verh\u00e4ltnis zur Rangfolge seiner naturwissenschaftlichen Pr\u00fcfungsergebnisse in einer Klasse).<\/span><\/p>\n<p> <span style=\"color: #000000;\">Um die Spearman-Rangkorrelation zwischen zwei Variablen in R zu berechnen, k\u00f6nnen wir die folgende grundlegende Syntax verwenden:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong>corr &lt;- cor. <span style=\"color: #3366ff;\">test<\/span> (x, y, method = ' <span style=\"color: #ff0000;\">spearman<\/span> ')\n<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">Die folgenden Beispiele zeigen, wie Sie diese Funktion in der Praxis nutzen k\u00f6nnen.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>Beispiel 1: Korrelation der Spearman-R\u00e4nge zwischen Vektoren<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\"><span style=\"color: #000000;\">Der folgende Code zeigt, wie die Spearman-Rangkorrelation zwischen zwei Vektoren in R berechnet wird:<\/span><\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #000000;\"><strong><span style=\"color: #008080;\">#define data\n<\/span>x &lt;- c(70, 78, 90, 87, 84, 86, 91, 74, 83, 85)\ny &lt;- c(90, 94, 79, 86, 84, 83, 88, 92, 76, 75)\n\n<span style=\"color: #008080;\">#calculate Spearman rank correlation between x and y\n<\/span>horn. <span style=\"color: #3366ff;\">test<\/span> (x, y, method = ' <span style=\"color: #ff0000;\">spearman<\/span> ')\n\n\tSpearman's rank correlation rho\n\ndata: x and y\nS = 234, p-value = 0.2324\nalternative hypothesis: true rho is not equal to 0\nsample estimates:\n       rho \n-0.4181818<\/strong><\/span><\/pre>\n<p> <span style=\"color: #000000;\">Aus dem Ergebnis k\u00f6nnen wir ersehen, dass die Spearman-Rangkorrelation <strong>-0,41818<\/strong> betr\u00e4gt und der entsprechende p-Wert <strong>0,2324<\/strong> betr\u00e4gt.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Dies weist darauf hin, dass zwischen den beiden Vektoren eine negative Korrelation besteht.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Da der p-Wert der Korrelation jedoch nicht kleiner als 0,05 ist, ist die Korrelation statistisch nicht signifikant.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>Beispiel 2: Spearman-Rangkorrelation zwischen Spalten im Datenrahmen<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">Der folgende Code zeigt, wie die Spearman-Rangkorrelation zwischen zwei Spalten in einem Datenrahmen berechnet wird:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #000000;\"><strong><span style=\"color: #008080;\">#define data frame\n<\/span>df &lt;- data. <span style=\"color: #3366ff;\">frame<\/span> (team=c('A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J'),\n                 points=c(67, 70, 75, 78, 73, 89, 84, 99, 90, 91),\n                 assists=c(22, 27, 30, 23, 25, 31, 38, 35, 34, 32))\n\n<span style=\"color: #008080;\">#calculate Spearman rank correlation between x and y\n<\/span>horn. <span style=\"color: #3366ff;\">test<\/span> (df$points, df$assists, method = 'spearman')\n\n\tSpearman's rank correlation rho\n\ndata: df$points and df$assists\nS = 36, p-value = 0.01165\nalternative hypothesis: true rho is not equal to 0\nsample estimates:\n      rho \n0.7818182 \n<\/strong><\/span><\/pre>\n<p> <span style=\"color: #000000;\">Aus dem Ergebnis k\u00f6nnen wir ersehen, dass die Spearman-Rangkorrelation <strong>0,7818<\/strong> und der entsprechende p-Wert <strong>0,01165<\/strong> betr\u00e4gt.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Dies weist darauf hin, dass zwischen den beiden Vektoren eine starke positive Korrelation besteht.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Da der p-Wert der Korrelation kleiner als 0,05 ist, ist die Korrelation statistisch signifikant.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>Zus\u00e4tzliche Ressourcen<\/strong><\/span><\/h3>\n<p> <a href=\"https:\/\/statorials.org\/de\/teilkorrelation-r\/\" target=\"_blank\" rel=\"noopener\">So berechnen Sie die partielle Korrelation in R<\/a><br \/> <a href=\"https:\/\/statorials.org\/de\/autokorrelation-in-r\/\" target=\"_blank\" rel=\"noopener\">So berechnen Sie die Autokorrelation in R<\/a><br \/> <a href=\"https:\/\/statorials.org\/de\/rollierende-korrelation-in-r\/\" target=\"_blank\" rel=\"noopener\">So berechnen Sie die gleitende Korrelation in R<\/a><br \/> <a href=\"https:\/\/statorials.org\/de\/so-melden-sie-spearman-korrelationen\/\" target=\"_blank\" rel=\"noopener\">So melden Sie die Spearman-Korrelation im APA-Format<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In der Statistik bezeichnet Korrelation die St\u00e4rke und Richtung einer Beziehung zwischen zwei Variablen. Der Wert eines Korrelationskoeffizienten kann zwischen -1 und 1 liegen, mit folgenden Interpretationen: -1: eine perfekte negative Beziehung zwischen zwei Variablen 0: keine Beziehung zwischen zwei Variablen 1: eine perfekte positive Beziehung zwischen zwei Variablen Eine besondere Art der Korrelation ist [&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 die Rangkorrelation nach Spearman in der R-Statorials<\/title>\n<meta name=\"description\" content=\"In diesem Tutorial wird anhand mehrerer Beispiele erl\u00e4utert, wie die Spearman-Rangkorrelation zwischen zwei Variablen 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\/spearman-korrelation-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 die Rangkorrelation nach Spearman in der R-Statorials\" \/>\n<meta property=\"og:description\" content=\"In diesem Tutorial wird anhand mehrerer Beispiele erl\u00e4utert, wie die Spearman-Rangkorrelation zwischen zwei Variablen in R berechnet wird.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/de\/spearman-korrelation-in-r\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-24T01:57:10+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\/spearman-korrelation-in-r\/\",\"url\":\"https:\/\/statorials.org\/de\/spearman-korrelation-in-r\/\",\"name\":\"So berechnen Sie die Rangkorrelation nach Spearman in der R-Statorials\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/de\/#website\"},\"datePublished\":\"2023-07-24T01:57:10+00:00\",\"dateModified\":\"2023-07-24T01:57:10+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/de\/#\/schema\/person\/ec75c4d6365f2708f8a0ad3a42121aa0\"},\"description\":\"In diesem Tutorial wird anhand mehrerer Beispiele erl\u00e4utert, wie die Spearman-Rangkorrelation zwischen zwei Variablen in R berechnet wird.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/de\/spearman-korrelation-in-r\/#breadcrumb\"},\"inLanguage\":\"de-DE\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/de\/spearman-korrelation-in-r\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/de\/spearman-korrelation-in-r\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Heim\",\"item\":\"https:\/\/statorials.org\/de\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"So berechnen sie die spearman-rangkorrelation 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 die Rangkorrelation nach Spearman in der R-Statorials","description":"In diesem Tutorial wird anhand mehrerer Beispiele erl\u00e4utert, wie die Spearman-Rangkorrelation zwischen zwei Variablen 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\/spearman-korrelation-in-r\/","og_locale":"de_DE","og_type":"article","og_title":"So berechnen Sie die Rangkorrelation nach Spearman in der R-Statorials","og_description":"In diesem Tutorial wird anhand mehrerer Beispiele erl\u00e4utert, wie die Spearman-Rangkorrelation zwischen zwei Variablen in R berechnet wird.","og_url":"https:\/\/statorials.org\/de\/spearman-korrelation-in-r\/","og_site_name":"Statorials","article_published_time":"2023-07-24T01:57:10+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\/spearman-korrelation-in-r\/","url":"https:\/\/statorials.org\/de\/spearman-korrelation-in-r\/","name":"So berechnen Sie die Rangkorrelation nach Spearman in der R-Statorials","isPartOf":{"@id":"https:\/\/statorials.org\/de\/#website"},"datePublished":"2023-07-24T01:57:10+00:00","dateModified":"2023-07-24T01:57:10+00:00","author":{"@id":"https:\/\/statorials.org\/de\/#\/schema\/person\/ec75c4d6365f2708f8a0ad3a42121aa0"},"description":"In diesem Tutorial wird anhand mehrerer Beispiele erl\u00e4utert, wie die Spearman-Rangkorrelation zwischen zwei Variablen in R berechnet wird.","breadcrumb":{"@id":"https:\/\/statorials.org\/de\/spearman-korrelation-in-r\/#breadcrumb"},"inLanguage":"de-DE","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/de\/spearman-korrelation-in-r\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/de\/spearman-korrelation-in-r\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Heim","item":"https:\/\/statorials.org\/de\/"},{"@type":"ListItem","position":2,"name":"So berechnen sie die spearman-rangkorrelation 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\/2016"}],"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=2016"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/posts\/2016\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/media?parent=2016"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/categories?post=2016"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/tags?post=2016"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}