

{"id":12533,"date":"2018-04-06T11:21:40","date_gmt":"2018-04-06T11:21:40","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=12533"},"modified":"2021-05-09T13:16:21","modified_gmt":"2021-05-09T07:46:21","slug":"sas-bland-altman-plot","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/sas-bland-altman-plot\/","title":{"rendered":"SAS Bland-Altman Analysis | SAS Bland Altman Plot"},"content":{"rendered":"<p>We looked at <strong>t-tests<\/strong>, <strong>correlation<\/strong> and <strong>regression<\/strong> in the previous tutorials, today we will be looking at another process called SAS Bland Altman Analysis and how to create SAS Bland Altman plot.<\/p>\n<p>At last, we will discuss\u00a0PROC SGPLOT Procedure in <strong>SAS\u00a0Programming Language<\/strong> with SAS Bland Altman Plot example.<\/p>\n<p>So let us get started.<\/p>\n<h2>What is SAS Bland Altman Analysis<\/h2>\n<p>SAS Bland-Altman analysis is not a statistical test, instead, it is a process used to assess agreement between two methods of measurement.<\/p>\n<p>An important requirement of the Bland-Altman method for measuring agreement is that the two methods for measuring the same characteristic use the same scale of measurement.\u00a0 This implies that when plotted, the points should line up along the\u00a0line\u00a0y\u00a0=\u00a0x (line of identity).<em>\u00a0<\/em><\/p>\n<p><strong>SAS Bland Altman analysis is based on examination of two plots:\u00a0<\/strong><\/p>\n<ol>\n<li><strong> Plot of identity<\/strong><em>:<\/em> A scatterplot of the two measurements along with the line\u00a0<em>y = x.\u00a0<\/em>If the measurements are in basic agreement then the points in the scatterplot will line up closer to the line\u00a0<em>y = x.<\/em>\u00a0<em>\u00a0<\/em><\/li>\n<\/ol>\n<ol start=\"2\">\n<li><strong>Bland-Altman plot<\/strong><em>:\u00a0<\/em>A scatterplot of variable means plotted on the horizontal axis and the differences plotted on the vertical axis which shows the amount of disagreement between the two measures and lets you see how this disagreement relates to the magnitude of the measurements.\u00a0 SAS Blend Altman plot includes approximate 95% limits.<\/li>\n<\/ol>\n<h2>SAS PROC SGPLOT Procedure<\/h2>\n<p>We create a SAS Bland Altman plot by first calculating the mean, upper limit and lower limit of the variable values. We then use PROC SGPLOT to create the Bland Altman plot in SAS.<\/p>\n<p><strong>SAS Proc SGPLOT Syntax-<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\">PROC SGPLOT DATA = dataset;\r\nSCATTER X=variable Y=Variable;\r\nREFLINE value;<\/pre>\n<p>Here scatter will create a scatterplot like we saw earlier an refline will create a reference line either on horizontal or vertical axis.<\/p>\n<h2>SAS Bland Altman Plot<\/h2>\n<p>In the below example we calculate the differences in the values of the variables and also the mean of the variables of the same observation. We also calculate the <strong>standard deviation<\/strong> values to be used in the upper and lower limit of the calculation.<\/p>\n<p><strong>SAS Bland Altman Plot\u00a0<\/strong><strong>Example-<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\">data\u00a0 temp;\r\ninput new old;\r\ndatalines;\r\n23 34\r\n23 14\r\n16 77\r\n35 85\r\n23 80\r\n27 15\r\n30 11\r\n26 42\r\n37 35\r\n20 9\r\n34 54\r\n61 67\r\n45 25\r\n77 64\r\n45 53\r\n;\u00a0\r\ndata differ ;\r\nset\u00a0 temp ;\r\n\/* calculate the difference *\/\r\ndiff=new-old ;\r\n\/* calculate the average *\/\r\nmean=(new+old)\/2 ;\r\nrun ;\r\nproc print data=differs;\r\nrun;\u00a0\r\nproc sql noprint ;\r\nselect mean(diff)-2*std(diff),\u00a0 mean(diff)+2*std(diff)\r\ninto\u00a0\u00a0 :lower,\u00a0 :upper\r\nfrom differs ;\r\nquit;\u00a0\r\nproc sgplot data=differs ;\r\nscatter x=mean y=diff;\r\nrefline 0 &amp;upper &amp;lower ;\r\nTITLE 'Bland-Altman Plot';\r\nrun ;\r\nquit ;<\/pre>\n<p><strong>a. An enhanced version of the SAS Bland Altman plot<\/strong><br \/>\nIn the enhanced version, the curve is fitted.<\/p>\n<p><strong>Example-<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\">proc sgplot data=differs;\r\nreg x = new y = diff;\r\nneedle x= new y=diff;\r\nrefline 0;\r\nTITLE 'Enhanced Bland-Altman Plot';\r\nrun;\r\nquit;<\/pre>\n<p>&nbsp;<\/p>\n<div>This was all about SAS Bland Altman Analysis Tutorial. Hope you like our explanation of SAS Bland Altman Plot.<\/div>\n<h2>Conclusion<\/h2>\n<p>Hence, we hope you all understood what is SAS Bland-Altman analysis and how can we create a SAS\u00a0bland Altman plot. We also saw how the plot can be enhanced.<\/p>\n<p>For any queries post your doubts in the comments section below and stay tuned to learn more interesting things in <strong>SAS Programming Language<\/strong>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We looked at t-tests, correlation and regression in the previous tutorials, today we will be looking at another process called SAS Bland Altman Analysis and how to create SAS Bland Altman plot. At last,&#46;&#46;&#46;<\/p>\n","protected":false},"author":6,"featured_media":12537,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[59],"tags":[273,2014,2015,11923,11924,11925],"class_list":["post-12533","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-sas","tag-advance-sas-programming","tag-bland-altman-analysis-in-sas","tag-bland-altman-plot-in-sas","tag-sas-bland-altman-plot-example","tag-sas-bland-altman-analysis","tag-sas-bland-altman-plot"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>SAS Bland-Altman Analysis | SAS Bland Altman Plot - DataFlair<\/title>\n<meta name=\"description\" content=\"What is SAS Blend Altman Plot, SAS Blend Altman analysis, SAS PROC SGPLOT Procedure,enhanced version of the SAS Bland-Altman plot,example of bland altman plot in SAS\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/sas-bland-altman-plot\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SAS Bland-Altman Analysis | SAS Bland Altman Plot - DataFlair\" \/>\n<meta property=\"og:description\" content=\"What is SAS Blend Altman Plot, SAS Blend Altman analysis, SAS PROC SGPLOT Procedure,enhanced version of the SAS Bland-Altman plot,example of bland altman plot in SAS\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/sas-bland-altman-plot\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-04-06T11:21:40+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-05-09T07:46:21+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/sas-Bland-Altman-Analysis-01.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"SAS Bland-Altman Analysis | SAS Bland Altman Plot - DataFlair","description":"What is SAS Blend Altman Plot, SAS Blend Altman analysis, SAS PROC SGPLOT Procedure,enhanced version of the SAS Bland-Altman plot,example of bland altman plot in SAS","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:\/\/data-flair.training\/blogs\/sas-bland-altman-plot\/","og_locale":"en_US","og_type":"article","og_title":"SAS Bland-Altman Analysis | SAS Bland Altman Plot - DataFlair","og_description":"What is SAS Blend Altman Plot, SAS Blend Altman analysis, SAS PROC SGPLOT Procedure,enhanced version of the SAS Bland-Altman plot,example of bland altman plot in SAS","og_url":"https:\/\/data-flair.training\/blogs\/sas-bland-altman-plot\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2018-04-06T11:21:40+00:00","article_modified_time":"2021-05-09T07:46:21+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/sas-Bland-Altman-Analysis-01.jpg","type":"image\/jpeg"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/sas-bland-altman-plot\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/sas-bland-altman-plot\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/2c58ecb4f73a39f0ef993f1ddfcd7b89"},"headline":"SAS Bland-Altman Analysis | SAS Bland Altman Plot","datePublished":"2018-04-06T11:21:40+00:00","dateModified":"2021-05-09T07:46:21+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/sas-bland-altman-plot\/"},"wordCount":444,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/sas-bland-altman-plot\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/sas-Bland-Altman-Analysis-01.jpg","keywords":["Advance SAS Programming","Bland-Altman Analysis in SAS","Bland-Altman Plot in SAS","SAS Bland Altman Plot example","SAS Bland-Altman Analysis","SAS Bland-Altman Plot"],"articleSection":["SAS Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/sas-bland-altman-plot\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/sas-bland-altman-plot\/","url":"https:\/\/data-flair.training\/blogs\/sas-bland-altman-plot\/","name":"SAS Bland-Altman Analysis | SAS Bland Altman Plot - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/sas-bland-altman-plot\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/sas-bland-altman-plot\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/sas-Bland-Altman-Analysis-01.jpg","datePublished":"2018-04-06T11:21:40+00:00","dateModified":"2021-05-09T07:46:21+00:00","description":"What is SAS Blend Altman Plot, SAS Blend Altman analysis, SAS PROC SGPLOT Procedure,enhanced version of the SAS Bland-Altman plot,example of bland altman plot in SAS","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/sas-bland-altman-plot\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/sas-bland-altman-plot\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/sas-bland-altman-plot\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/sas-Bland-Altman-Analysis-01.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/sas-Bland-Altman-Analysis-01.jpg","width":1200,"height":628},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/sas-bland-altman-plot\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"garbage collection algorithm in data structure","item":"https:\/\/data-flair.training\/blogs\/tag\/garbage-collection-algorithm-in-data-structure\/"},{"@type":"ListItem","position":3,"name":"SAS Bland-Altman Analysis | SAS Bland Altman Plot"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/2c58ecb4f73a39f0ef993f1ddfcd7b89","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"The DataFlair Team provides industry-driven content on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our expert educators focus on delivering value-packed, easy-to-follow resources for tech enthusiasts and professionals.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam2\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/12533","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=12533"}],"version-history":[{"count":6,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/12533\/revisions"}],"predecessor-version":[{"id":93112,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/12533\/revisions\/93112"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/12537"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=12533"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=12533"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=12533"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}