{"id":3641,"date":"2023-07-16T09:38:48","date_gmt":"2023-07-16T09:38:48","guid":{"rendered":"https:\/\/statorials.org\/nl\/resterende-grafische-luchtsluis\/"},"modified":"2023-07-16T09:38:48","modified_gmt":"2023-07-16T09:38:48","slug":"resterende-grafische-luchtsluis","status":"publish","type":"post","link":"https:\/\/statorials.org\/nl\/resterende-grafische-luchtsluis\/","title":{"rendered":"Hoe u een restplot maakt in sas"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\"><strong>Residuele plots<\/strong> worden vaak gebruikt om te beoordelen of de <a href=\"https:\/\/statorials.org\/nl\/residu\/\" target=\"_blank\" rel=\"noopener\">residuen<\/a> van een regressiemodel normaal verdeeld zijn en of ze al dan niet heteroscedasticiteit vertonen.<\/span><\/p>\n<p> <span style=\"color: #000000;\">U kunt de volgende basissyntaxis gebruiken om een regressiemodel aan te passen en een residuele plot voor het model in SAS te maken:<\/span><\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <strong><span style=\"color: #3366ff;\">symbol value<\/span> = circle;\n\n<span style=\"color: #800080;\">proc reg<\/span> data=my_data;\n    <span style=\"color: #3366ff;\">model<\/span> y = x;\n    plot residual. * predicted.;\n<span style=\"color: #800080;\">run<\/span> ;\n<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">Het volgende voorbeeld laat zien hoe u deze syntaxis in de praktijk kunt gebruiken.<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>Opmerking<\/strong> : de symboolverklaring geeft aan dat we de resterende plotpunten als cirkels willen weergeven. Het standaardformulier is een plusteken.<\/span><\/p>\n<h2> <strong>Voorbeeld: maak een restplot in SAS<\/strong><\/h2>\n<p> <span style=\"color: #000000;\"><span style=\"color: #000000;\">Laten we aannemen dat we de volgende gegevensset in SAS hebben:<\/span><\/span> <\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <span style=\"color: #000000;\"><strong><span style=\"color: #008000;\">\/*create dataset*\/\n<\/span><span style=\"color: #800080;\">data<\/span> my_data;\n    <span style=\"color: #3366ff;\">input<\/span> xy;\n    <span style=\"color: #3366ff;\">datalines<\/span> ;\n8 41\n12 42\n12 39\n13 37\n14 35\n16 39\n17 45\n22 46\n24 39\n26 49\n29 55\n30 57\n;\n<span style=\"color: #800080;\">run<\/span> ;\n\n<span style=\"color: #008000;\">\/*view dataset*\/\n<\/span><span style=\"color: #800080;\">proc print<\/span> <span style=\"color: #3366ff;\">data<\/span> =my_data;\n<\/strong><\/span><\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" class=\" wp-image-29889 aligncenter\" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/reside1.jpg\" alt=\"\" width=\"114\" height=\"326\" srcset=\"\" sizes=\"auto, \"><\/p>\n<p> <span style=\"color: #000000;\">We kunnen de volgende syntaxis gebruiken om een <a href=\"https:\/\/statorials.org\/nl\/lineaire-regressie-1\/\" target=\"_blank\" rel=\"noopener\">eenvoudig lineair regressiemodel<\/a> aan deze gegevensset toe te passen en een residuele grafiek te maken om de residuen te visualiseren ten opzichte van de voorspelde waarden:<\/span><\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <span style=\"color: #000000;\"><strong><span style=\"color: #008000;\">\/*fit simple linear regression model and create residual plot*\/\n<\/span><span style=\"color: #3366ff;\">symbol<\/span> <span style=\"color: #3366ff;\">value<\/span> = circle;\n<span style=\"color: #800080;\">proc reg<\/span> <span style=\"color: #3366ff;\">data<\/span> =my_data;\n   <span style=\"color: #3366ff;\">model<\/span> y = x;\n   plot residual. * predicted.;\n<span style=\"color: #800080;\">run<\/span> ;\n<\/strong><\/span><\/pre>\n<p> <span style=\"color: #000000;\">Het resterend plot wordt onderaan de uitvoer weergegeven:<\/span> <\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-29890\" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/resident2.jpg\" alt=\"SAS-restspoor\" width=\"663\" height=\"517\" srcset=\"\" sizes=\"auto, \"><\/p>\n<p> <span style=\"color: #000000;\">Op de x-as worden de voorspelde waarden weergegeven en op de y-as de residuen.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Omdat de residuen willekeurig verspreid zijn rond de nulwaarde zonder duidelijke trend van toenemende of afnemende variantie, wordt voldaan aan de aanname van <a href=\"https:\/\/statorials.org\/nl\/regressie-van-heteroscedasticiteit\/\" target=\"_blank\" rel=\"noopener\">homoskedasticiteit van de residuen<\/a> .<\/span><\/p>\n<p> <span style=\"color: #000000;\">Bovenaan de grafiek zien we ook de gepaste regressievergelijking:<\/span><\/p>\n<p> <span style=\"color: #000000;\">y = 29,631 + 0,7553x<\/span><\/p>\n<p> <span style=\"color: #000000;\">En aan de rechterkant van het diagram zien we ook de volgende statistieken voor het regressiemodel:<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\"><strong>N<\/strong> : Totaal aantal waarnemingen (12)<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>Rsq<\/strong> : R-kwadraatmodel (0,6324)<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>AdjRsq<\/strong> : Model aangepast R-kwadraat (0,5956)<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>RMSE<\/strong> : De wortelgemiddelde kwadratische fout van het model (4,4417)<\/span><\/li>\n<\/ul>\n<h2> <span style=\"color: #000000;\"><strong>Aanvullende bronnen<\/strong><\/span><\/h2>\n<p> <span style=\"color: #000000;\">In de volgende zelfstudies wordt uitgelegd hoe u andere veelvoorkomende taken in SAS kunt uitvoeren:<\/span><\/p>\n<p> <a href=\"https:\/\/statorials.org\/nl\/luchtsluishistogram\/\" target=\"_blank\" rel=\"noopener\">Histogrammen maken in SAS<\/a><br \/> <a href=\"https:\/\/statorials.org\/nl\/luchtsluis-puntenwolk\/\" target=\"_blank\" rel=\"noopener\">Hoe puntenwolken te cre\u00ebren in SAS<\/a><br \/> <a href=\"https:\/\/statorials.org\/nl\/sas-uitschieters\/\" target=\"_blank\" rel=\"noopener\">Hoe uitschieters in SAS te identificeren<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Residuele plots worden vaak gebruikt om te beoordelen of de residuen van een regressiemodel normaal verdeeld zijn en of ze al dan niet heteroscedasticiteit vertonen. U kunt de volgende basissyntaxis gebruiken om een regressiemodel aan te passen en een residuele plot voor het model in SAS te maken: symbol value = circle; proc reg data=my_data; [&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-3641","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 u een restplot maakt in SAS - Statorials<\/title>\n<meta name=\"description\" content=\"In deze zelfstudie wordt aan de hand van een voorbeeld uitgelegd hoe u een restplot in SAS maakt.\" \/>\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\/resterende-grafische-luchtsluis\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Hoe u een restplot maakt in SAS - Statorials\" \/>\n<meta property=\"og:description\" content=\"In deze zelfstudie wordt aan de hand van een voorbeeld uitgelegd hoe u een restplot in SAS maakt.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/nl\/resterende-grafische-luchtsluis\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-16T09:38:48+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/reside1.jpg\" \/>\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\/resterende-grafische-luchtsluis\/\",\"url\":\"https:\/\/statorials.org\/nl\/resterende-grafische-luchtsluis\/\",\"name\":\"Hoe u een restplot maakt in SAS - Statorials\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/nl\/#website\"},\"datePublished\":\"2023-07-16T09:38:48+00:00\",\"dateModified\":\"2023-07-16T09:38:48+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/nl\/#\/schema\/person\/d4b8842173cca1bb62cdec41860e4219\"},\"description\":\"In deze zelfstudie wordt aan de hand van een voorbeeld uitgelegd hoe u een restplot in SAS maakt.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/nl\/resterende-grafische-luchtsluis\/#breadcrumb\"},\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/nl\/resterende-grafische-luchtsluis\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/nl\/resterende-grafische-luchtsluis\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Thuis\",\"item\":\"https:\/\/statorials.org\/nl\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Hoe u een restplot maakt in sas\"}]},{\"@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 u een restplot maakt in SAS - Statorials","description":"In deze zelfstudie wordt aan de hand van een voorbeeld uitgelegd hoe u een restplot in SAS maakt.","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\/resterende-grafische-luchtsluis\/","og_locale":"de_DE","og_type":"article","og_title":"Hoe u een restplot maakt in SAS - Statorials","og_description":"In deze zelfstudie wordt aan de hand van een voorbeeld uitgelegd hoe u een restplot in SAS maakt.","og_url":"https:\/\/statorials.org\/nl\/resterende-grafische-luchtsluis\/","og_site_name":"Statorials","article_published_time":"2023-07-16T09:38:48+00:00","og_image":[{"url":"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/reside1.jpg"}],"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\/resterende-grafische-luchtsluis\/","url":"https:\/\/statorials.org\/nl\/resterende-grafische-luchtsluis\/","name":"Hoe u een restplot maakt in SAS - Statorials","isPartOf":{"@id":"https:\/\/statorials.org\/nl\/#website"},"datePublished":"2023-07-16T09:38:48+00:00","dateModified":"2023-07-16T09:38:48+00:00","author":{"@id":"https:\/\/statorials.org\/nl\/#\/schema\/person\/d4b8842173cca1bb62cdec41860e4219"},"description":"In deze zelfstudie wordt aan de hand van een voorbeeld uitgelegd hoe u een restplot in SAS maakt.","breadcrumb":{"@id":"https:\/\/statorials.org\/nl\/resterende-grafische-luchtsluis\/#breadcrumb"},"inLanguage":"de","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/nl\/resterende-grafische-luchtsluis\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/nl\/resterende-grafische-luchtsluis\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Thuis","item":"https:\/\/statorials.org\/nl\/"},{"@type":"ListItem","position":2,"name":"Hoe u een restplot maakt in sas"}]},{"@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\/3641","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=3641"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/nl\/wp-json\/wp\/v2\/posts\/3641\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/nl\/wp-json\/wp\/v2\/media?parent=3641"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/nl\/wp-json\/wp\/v2\/categories?post=3641"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/nl\/wp-json\/wp\/v2\/tags?post=3641"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}