{"id":2242,"date":"2023-07-23T02:55:11","date_gmt":"2023-07-23T02:55:11","guid":{"rendered":"https:\/\/statorials.org\/nl\/polychorische-correlatie-in-r\/"},"modified":"2023-07-23T02:55:11","modified_gmt":"2023-07-23T02:55:11","slug":"polychorische-correlatie-in-r","status":"publish","type":"post","link":"https:\/\/statorials.org\/nl\/polychorische-correlatie-in-r\/","title":{"rendered":"Hoe polychorische correlatie in r te berekenen"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\"><strong>Polychorische correlatie<\/strong> wordt gebruikt om de correlatie tussen ordinale variabelen te berekenen.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Bedenk dat ordinale variabelen variabelen zijn waarvan de mogelijke waarden categorisch zijn en een natuurlijke volgorde hebben.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Hier zijn enkele voorbeelden van variabelen gemeten op een ordinale schaal:<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\"><strong>Tevredenheid<\/strong> : Zeer ontevreden, ontevreden, neutraal, tevreden, zeer tevreden<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>Inkomensniveau<\/strong> : laag inkomen, middeninkomen, hoog inkomen<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>Status functielocatie<\/strong> : Entry Analist, Analist I, Analist II, Senior Analist<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>Pijnniveau<\/strong> : lage hoeveelheid, gemiddelde hoeveelheid, hoge hoeveelheid<\/span><\/li>\n<\/ul>\n<p> <span style=\"color: #000000;\">De waarde van de polychorische correlatie varieert van -1 tot 1 waarbij:<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\"><strong>-1<\/strong> geeft een perfecte negatieve correlatie aan<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>0<\/strong> geeft aan dat er geen correlatie is<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>1<\/strong> geeft een perfecte positieve correlatie aan<\/span><\/li>\n<\/ul>\n<p> <span style=\"color: #000000;\">We kunnen de functie <strong>polychor(x, y)<\/strong> uit het <strong>polycor-<\/strong> pakket gebruiken om de polychorische correlatie tussen twee ordinale variabelen in R te berekenen.<\/span><\/p>\n<p> <span style=\"color: #000000;\">De volgende voorbeelden laten zien hoe u deze functie in de praktijk kunt gebruiken.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>Voorbeeld 1: Bereken polychorische correlatie voor filmbeoordelingen<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">Stel dat u wilt weten of er bij twee verschillende filmbeoordelingsbureaus een hoge correlatie bestaat tussen hun filmbeoordelingen.<\/span><\/p>\n<p> <span style=\"color: #000000;\">We vragen elk bureau om 20 verschillende films te beoordelen op een schaal van 1 tot 3, waarbij:<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\"><strong>1<\/strong> geeft \u201cslecht\u201d aan<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>2<\/strong> geeft \u201carm\u201d aan<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>3<\/strong> geeft \u201cgoed\u201d aan<\/span><\/li>\n<\/ul>\n<p> <span style=\"color: #000000;\">We kunnen de volgende code in R gebruiken om de polychorische correlatie tussen de beoordelingen van de twee bureaus te berekenen:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008000;\">library<\/span> (polycor)\n\n<span style=\"color: #008080;\">#define movie ratings for each agency\n<\/span>agency1 &lt;- c(1, 1, 2, 2, 3, 2, 2, 3, 2, 3, 3, 2, 1, 2, 2, 1, 1, 1, 2, 2)\nagency2 &lt;- c(1, 1, 2, 1, 3, 3, 3, 2, 2, 3, 3, 3, 2, 2, 2, 1, 2, 1, 3, 3)\n\n<span style=\"color: #008080;\">#calculate polychoric correlation between ratings\n<\/span>polychor(agency1, agency2)\n\n[1] 0.7828328\n<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">De polychorische correlatie blijkt <strong>0,78<\/strong> te zijn.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Deze waarde is vrij hoog, wat aangeeft dat er een sterk positief verband bestaat tussen de beoordelingen van elk bureau.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>Voorbeeld 2: Bereken polychorische correlatie voor restaurantrecensies<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">Stel dat u wilt weten of twee verschillende buurtrestaurants een verband hebben tussen de klantbeoordelingen van hun restaurants.<\/span><\/p>\n<p> <span style=\"color: #000000;\">We doen willekeurig onderzoek onder twintig klanten die in de twee restaurants hebben gegeten en vragen hen hun algehele tevredenheid te beoordelen op een schaal van 1 tot 5, waarbij:<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\"><strong>1<\/strong> staat voor \u201czeer ontevreden\u201d<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>2<\/strong> betekent \u201contevreden\u201d<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>3<\/strong> geeft \u201cneutraal\u201d aan<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>4<\/strong> betekent \u201ctevreden\u201d<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>5<\/strong> betekent \u201czeer tevreden\u201d<\/span><\/li>\n<\/ul>\n<p> <span style=\"color: #000000;\">We kunnen de volgende code in R gebruiken om de polychorische correlatie tussen de beoordelingen van de twee restaurants te berekenen:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008000;\">library<\/span> (polycor)\n\n<span style=\"color: #008080;\">#define ratings for each restaurant\n<\/span>restaurant1 &lt;- c(1, 1, 2, 2, 2, 3, 3, 3, 2, 2, 3, 4, 4, 5, 5, 4, 3, 4, 5, 5)\nrestaurant2 &lt;- c(4, 3, 3, 4, 3, 3, 4, 5, 4, 4, 4, 5, 5, 4, 2, 1, 1, 2, 1, 4)\n\n<span style=\"color: #008080;\">#calculate polychoric correlation between ratings\n<\/span>polychor(restaurant1, restaurant2)\n\n[1] -0.1322774\n<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">De polychorische correlatie blijkt <strong>-0,13<\/strong> te zijn.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Deze waarde ligt dicht bij nul, wat aangeeft dat er weinig of geen verband bestaat tussen restaurantbeoordelingen.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>Aanvullende bronnen<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">In de volgende tutorials wordt uitgelegd hoe u andere veel voorkomende correlatieco\u00ebffici\u00ebnten in R kunt berekenen:<\/span><\/p>\n<p> <a href=\"https:\/\/statorials.org\/nl\/speermancorrelatie-in-r\/\" target=\"_blank\" rel=\"noopener\">Hoe de Spearman-rangcorrelatie in R te berekenen<\/a><br \/> <a href=\"https:\/\/statorials.org\/nl\/punt-biseriele-correlatie-r\/\" target=\"_blank\" rel=\"noopener\">Hoe de punt-biseri\u00eble correlatie in R te berekenen<\/a><br \/> <a href=\"https:\/\/statorials.org\/nl\/kruiscorrelatie-in-r\/\" target=\"_blank\" rel=\"noopener\">Hoe kruiscorrelatie in R te berekenen<\/a><br \/> <a href=\"https:\/\/statorials.org\/nl\/rollende-correlatie-in-r\/\" target=\"_blank\" rel=\"noopener\">Hoe de glijdende correlatie in R te berekenen<\/a><br \/> <a href=\"https:\/\/statorials.org\/nl\/gedeeltelijke-correlatie-r\/\" target=\"_blank\" rel=\"noopener\">Hoe de gedeeltelijke correlatie in R te berekenen<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Polychorische correlatie wordt gebruikt om de correlatie tussen ordinale variabelen te berekenen. Bedenk dat ordinale variabelen variabelen zijn waarvan de mogelijke waarden categorisch zijn en een natuurlijke volgorde hebben. Hier zijn enkele voorbeelden van variabelen gemeten op een ordinale schaal: Tevredenheid : Zeer ontevreden, ontevreden, neutraal, tevreden, zeer tevreden Inkomensniveau : laag inkomen, middeninkomen, hoog [&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-2242","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>Hoe polychorische correlatie in R te berekenen - Statorials<\/title>\n<meta name=\"description\" content=\"In deze tutorial wordt uitgelegd hoe je polychorische correlatie in R kunt berekenen, 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\/polychorische-correlatie-in-r\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Hoe polychorische correlatie in R te berekenen - Statorials\" \/>\n<meta property=\"og:description\" content=\"In deze tutorial wordt uitgelegd hoe je polychorische correlatie in R kunt berekenen, met verschillende voorbeelden.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/nl\/polychorische-correlatie-in-r\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-23T02:55:11+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\u00a0Minuten\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/statorials.org\/nl\/polychorische-correlatie-in-r\/\",\"url\":\"https:\/\/statorials.org\/nl\/polychorische-correlatie-in-r\/\",\"name\":\"Hoe polychorische correlatie in R te berekenen - Statorials\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/nl\/#website\"},\"datePublished\":\"2023-07-23T02:55:11+00:00\",\"dateModified\":\"2023-07-23T02:55:11+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/nl\/#\/schema\/person\/d4b8842173cca1bb62cdec41860e4219\"},\"description\":\"In deze tutorial wordt uitgelegd hoe je polychorische correlatie in R kunt berekenen, met verschillende voorbeelden.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/nl\/polychorische-correlatie-in-r\/#breadcrumb\"},\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/nl\/polychorische-correlatie-in-r\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/nl\/polychorische-correlatie-in-r\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Thuis\",\"item\":\"https:\/\/statorials.org\/nl\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Hoe polychorische correlatie in r te berekenen\"}]},{\"@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":"Hoe polychorische correlatie in R te berekenen - Statorials","description":"In deze tutorial wordt uitgelegd hoe je polychorische correlatie in R kunt berekenen, 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\/polychorische-correlatie-in-r\/","og_locale":"de_DE","og_type":"article","og_title":"Hoe polychorische correlatie in R te berekenen - Statorials","og_description":"In deze tutorial wordt uitgelegd hoe je polychorische correlatie in R kunt berekenen, met verschillende voorbeelden.","og_url":"https:\/\/statorials.org\/nl\/polychorische-correlatie-in-r\/","og_site_name":"Statorials","article_published_time":"2023-07-23T02:55:11+00:00","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\/polychorische-correlatie-in-r\/","url":"https:\/\/statorials.org\/nl\/polychorische-correlatie-in-r\/","name":"Hoe polychorische correlatie in R te berekenen - Statorials","isPartOf":{"@id":"https:\/\/statorials.org\/nl\/#website"},"datePublished":"2023-07-23T02:55:11+00:00","dateModified":"2023-07-23T02:55:11+00:00","author":{"@id":"https:\/\/statorials.org\/nl\/#\/schema\/person\/d4b8842173cca1bb62cdec41860e4219"},"description":"In deze tutorial wordt uitgelegd hoe je polychorische correlatie in R kunt berekenen, met verschillende voorbeelden.","breadcrumb":{"@id":"https:\/\/statorials.org\/nl\/polychorische-correlatie-in-r\/#breadcrumb"},"inLanguage":"de","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/nl\/polychorische-correlatie-in-r\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/nl\/polychorische-correlatie-in-r\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Thuis","item":"https:\/\/statorials.org\/nl\/"},{"@type":"ListItem","position":2,"name":"Hoe polychorische correlatie in r te berekenen"}]},{"@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\/2242","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=2242"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/nl\/wp-json\/wp\/v2\/posts\/2242\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/nl\/wp-json\/wp\/v2\/media?parent=2242"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/nl\/wp-json\/wp\/v2\/categories?post=2242"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/nl\/wp-json\/wp\/v2\/tags?post=2242"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}