{"id":1482,"date":"2023-07-26T05:27:40","date_gmt":"2023-07-26T05:27:40","guid":{"rendered":"https:\/\/statorials.org\/nl\/univariate-analyse-in-r\/"},"modified":"2023-07-26T05:27:40","modified_gmt":"2023-07-26T05:27:40","slug":"univariate-analyse-in-r","status":"publish","type":"post","link":"https:\/\/statorials.org\/nl\/univariate-analyse-in-r\/","title":{"rendered":"Univariate analyse uitvoeren in r (met voorbeelden)"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\">De term <a href=\"https:\/\/statorials.org\/nl\/univariate-analyse\/\" target=\"_blank\" rel=\"noopener\">univariate analyse<\/a> verwijst naar de analyse van \u00e9\u00e9n variabele. U kunt dit onthouden omdat het voorvoegsel \u201cuni\u201d \u201c\u00e9\u00e9n\u201d betekent.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Er zijn drie veelgebruikte manieren om univariate analyses op een variabele uit te voeren:<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>1. Samenvattende statistieken<\/strong> \u2013 Meet het centrum en de verdeling van waarden.<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>2. Frequentietabel<\/strong> \u2013 Beschrijft hoe vaak verschillende waarden verschijnen.<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>3. Grafieken<\/strong> \u2013 Wordt gebruikt om de verdeling van waarden te visualiseren.<\/span><\/p>\n<p> <span style=\"color: #000000;\">In deze zelfstudie wordt een voorbeeld gegeven van hoe u een univariate analyse uitvoert voor de volgende variabele:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#create variable with 15 values<\/span>\nx &lt;- c(1, 1, 2, 3.5, 4, 4, 4, 5, 5, 6.5, 7, 7.4, 8, 13, 14.2)\n<\/strong><\/pre>\n<h3> <span style=\"color: #000000;\"><strong>Samenvattende statistieken<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">We kunnen de volgende syntaxis gebruiken om verschillende samenvattende statistieken voor onze variabele te berekenen:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#find means<\/span>\nmean(x)\n[1] 5.706667\n\n<span style=\"color: #008080;\">#find median\n<\/span>median(x)\n\n[1] 5\n\n<span style=\"color: #008080;\">#find range<\/span>\nmax(x) - min(x)\n\n[1] 13.2\n\n<span style=\"color: #008080;\">#find interquartile range (spread of middle 50% of values)<\/span>\nIQR(x)\n\n[1] 3.45\n\n<span style=\"color: #008080;\">#find standard deviation<\/span>\nsd(x)\n\n[1] 3.858287<\/strong><\/pre>\n<h3> <span style=\"color: #000000;\"><strong>Frequentietabel<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">We kunnen de volgende syntaxis gebruiken om een frequentietabel voor onze variabele te maken:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#produce frequency table<\/span>\ntable(s)\n\n   1 2 3.5 4 5 6.5 7 7.4 8 13 14.2 \n   2 1 1 3 2 1 1 1 1 1 1 \n<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">Dit vertelt ons dat:<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\">De waarde <strong>1<\/strong> verschijnt tweemaal<\/span><\/li>\n<li> <span style=\"color: #000000;\">De waarde <strong>2<\/strong> verschijnt 1 keer<\/span><\/li>\n<li> <span style=\"color: #000000;\">De waarde <strong>3,5<\/strong> verschijnt 1 keer<\/span><\/li>\n<\/ul>\n<p> <span style=\"color: #000000;\">Enzovoort.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>Grafisch<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">We kunnen een <a href=\"https:\/\/statorials.org\/nl\/bakkebaarden\/\" target=\"_blank\" rel=\"noopener\">boxplot<\/a> maken met behulp van de volgende syntaxis:<\/span> <\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#produce boxplot<\/span>\nboxplot(x)\n<\/strong><\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-14678 \" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/unir1.png\" alt=\"\" width=\"441\" height=\"373\" srcset=\"\" sizes=\"auto, \"><\/p>\n<p> <span style=\"color: #000000;\">We kunnen een histogram maken met behulp van de volgende syntaxis:<\/span> <\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#produce histogram<\/span>\nhist(x)<\/strong> <\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-14679 \" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/unir2.png\" alt=\"\" width=\"396\" height=\"401\" srcset=\"\" sizes=\"auto, \"><\/p>\n<p> <span style=\"color: #000000;\">We kunnen een <a href=\"https:\/\/statorials.org\/nl\/dichtheidscurven\/\" target=\"_blank\" rel=\"noopener\">dichtheidscurve<\/a> maken met behulp van de volgende syntaxis:<\/span> <\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#produce density curve<\/span>\nplot(density(x))<\/strong> <\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-14680 \" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/unir3.png\" alt=\"\" width=\"413\" height=\"402\" srcset=\"\" sizes=\"auto, \"><\/p>\n<p> <span style=\"color: #000000;\">Elk van deze grafieken geeft ons een unieke manier om de verdeling van de waarden van onze variabele te visualiseren.<\/span><\/p>\n<hr>\n<p> <span style=\"color: #000000;\">Op deze pagina vindt u meer R-tutorials.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>De term univariate analyse verwijst naar de analyse van \u00e9\u00e9n variabele. U kunt dit onthouden omdat het voorvoegsel \u201cuni\u201d \u201c\u00e9\u00e9n\u201d betekent. Er zijn drie veelgebruikte manieren om univariate analyses op een variabele uit te voeren: 1. Samenvattende statistieken \u2013 Meet het centrum en de verdeling van waarden. 2. Frequentietabel \u2013 Beschrijft hoe vaak verschillende waarden [&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-1482","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>Univariate analyse uitvoeren in R (met voorbeelden)<\/title>\n<meta name=\"description\" content=\"In deze tutorial wordt uitgelegd hoe u univariate analyses uitvoert in R, 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\/univariate-analyse-in-r\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Univariate analyse uitvoeren in R (met voorbeelden)\" \/>\n<meta property=\"og:description\" content=\"In deze tutorial wordt uitgelegd hoe u univariate analyses uitvoert in R, met verschillende voorbeelden.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/nl\/univariate-analyse-in-r\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-26T05:27:40+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/unir1.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\t<meta name=\"twitter:label2\" content=\"Gesch\u00e4tzte Lesezeit\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\u00a0Minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/statorials.org\/nl\/univariate-analyse-in-r\/\",\"url\":\"https:\/\/statorials.org\/nl\/univariate-analyse-in-r\/\",\"name\":\"Univariate analyse uitvoeren in R (met voorbeelden)\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/nl\/#website\"},\"datePublished\":\"2023-07-26T05:27:40+00:00\",\"dateModified\":\"2023-07-26T05:27:40+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/nl\/#\/schema\/person\/d4b8842173cca1bb62cdec41860e4219\"},\"description\":\"In deze tutorial wordt uitgelegd hoe u univariate analyses uitvoert in R, met verschillende voorbeelden.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/nl\/univariate-analyse-in-r\/#breadcrumb\"},\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/nl\/univariate-analyse-in-r\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/nl\/univariate-analyse-in-r\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Thuis\",\"item\":\"https:\/\/statorials.org\/nl\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Univariate analyse uitvoeren in r (met voorbeelden)\"}]},{\"@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":"Univariate analyse uitvoeren in R (met voorbeelden)","description":"In deze tutorial wordt uitgelegd hoe u univariate analyses uitvoert in R, 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\/univariate-analyse-in-r\/","og_locale":"de_DE","og_type":"article","og_title":"Univariate analyse uitvoeren in R (met voorbeelden)","og_description":"In deze tutorial wordt uitgelegd hoe u univariate analyses uitvoert in R, met verschillende voorbeelden.","og_url":"https:\/\/statorials.org\/nl\/univariate-analyse-in-r\/","og_site_name":"Statorials","article_published_time":"2023-07-26T05:27:40+00:00","og_image":[{"url":"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/unir1.png"}],"author":"Dr.benjamin anderson","twitter_card":"summary_large_image","twitter_misc":{"Verfasst von":"Dr.benjamin anderson","Gesch\u00e4tzte Lesezeit":"1\u00a0Minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/statorials.org\/nl\/univariate-analyse-in-r\/","url":"https:\/\/statorials.org\/nl\/univariate-analyse-in-r\/","name":"Univariate analyse uitvoeren in R (met voorbeelden)","isPartOf":{"@id":"https:\/\/statorials.org\/nl\/#website"},"datePublished":"2023-07-26T05:27:40+00:00","dateModified":"2023-07-26T05:27:40+00:00","author":{"@id":"https:\/\/statorials.org\/nl\/#\/schema\/person\/d4b8842173cca1bb62cdec41860e4219"},"description":"In deze tutorial wordt uitgelegd hoe u univariate analyses uitvoert in R, met verschillende voorbeelden.","breadcrumb":{"@id":"https:\/\/statorials.org\/nl\/univariate-analyse-in-r\/#breadcrumb"},"inLanguage":"de","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/nl\/univariate-analyse-in-r\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/nl\/univariate-analyse-in-r\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Thuis","item":"https:\/\/statorials.org\/nl\/"},{"@type":"ListItem","position":2,"name":"Univariate analyse uitvoeren in r (met voorbeelden)"}]},{"@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\/1482","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=1482"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/nl\/wp-json\/wp\/v2\/posts\/1482\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/nl\/wp-json\/wp\/v2\/media?parent=1482"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/nl\/wp-json\/wp\/v2\/categories?post=1482"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/nl\/wp-json\/wp\/v2\/tags?post=1482"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}