[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-665618-105":59,"doc-detail-665618-en":129},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":122,"head_meta":124,"extra_data":126,"updated_unix":128},105,"en","pharmasug-2018-paper-dv-20-v-is-for-venn-diagrams","PharmaSUG 2018-Paper DV-20 - V is for Venn Diagrams","","Produce two-, three-, and four-way Venn diagrams easily using SAS Graph Template Language, specifically DRAWOVAL and DRAWTEXT. The approach addresses how Venn diagrams are often built in the pharmaceutical industry with Excel and PowerPoint, and shows a SAS 9.4 %VENN macro that supports normal and proportional diagrams. For qualitative data, it computes group counts and percentages, then renders the diagram, optionally showing numbers in proportional output legends.",{"@graph":69,"@context":121},[70,84,104],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":35,"@type":76,"position":81},"https://docshare.wps.com/document/healthcare/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/pharmasug-2018-paper-dv-20-v-is-for-venn-diagrams/665618/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":98,"encodingFormat":97,"isAccessibleForFree":99,"interactionStatistic":100},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/pharmasug-2018-paper-dv-20-v-is-for-venn-diagrams/665618.png","ImageObject",300,407,{"name":92,"@type":93},"Miles","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-10-29",true,{"@type":101,"interactionType":102,"userInteractionCount":4},"InteractionCounter",{"@type":103},"ViewAction",{"@type":105,"mainEntity":106},"FAQPage",[107,113,117],{"name":108,"@type":109,"acceptedAnswer":110},"How does the paper generate Venn diagrams in SAS?","Question",{"text":111,"@type":112},"It uses Graph Template Language (GTL) with DRAWOVAL and DRAWTEXT to draw normal Venn diagrams, while proportional Venn diagrams are produced using the Google Charts API approach within the %VENN macro.","Answer",{"name":114,"@type":109,"acceptedAnswer":115},"What determines whether the output is a normal or proportional Venn diagram?",{"text":116,"@type":112},"Set the PROPORTIONAL macro variable to 0 for normal diagrams (numbers and intersections). Set PROPORTIONAL to 1 for proportional diagrams, where numbering behavior can be controlled via prop_n_label.",{"name":118,"@type":109,"acceptedAnswer":119},"How many groups can be created, and which macro variables are required?",{"text":120,"@type":112},"For normal Venn diagrams, set VENN_DIAGRAM to 2, 3, or 4 to create two-, three-, or four-way diagrams. VARA and VARB are required for two-way; VARC is required for three-way; VARD is required for four-way.","https://schema.org",{"og:url":83,"og:type":123,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":125,"canonical":83},"index,follow",{"doc_id":127,"site_id":62},665618,1793305251,{"code":4,"msg":5,"data":130},{"doc_id":127,"user_id":131,"nickname":92,"user_avatar":132,"doc_module":4,"category_id":34,"category_name":35,"doc_title":65,"doc_description":67,"doc_content":133,"file_id":134,"file_url":135,"file_type":136,"file_size":137,"view_count":4,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":138,"language":139,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":67,"update_tm":128,"read_time":143},13056703019404,"https://ap-avatar.wpscdn.com/davatar_29158cc5080c5b710cf443261637dec0","PharmaSUG 2018-Paper DV-20  \nV is for Venn Diagrams  \nKriss Harris , SAS Specialists Limited  \nABSTRACT  \nWould you like to produce Venn diagrams easily? This paper shows how you can produce stunning two- , three- , and four-way Venn diagrams by using the Graph Template Language, in particular the DRAWOVAL and DRAWTEXT statements. From my experience, Venn diagrams have typically been created in the pharmaceutical industry by using Microsoft Excel and Microsoft PowerPoint. Excel is used to first count the numbers in each group, and PowerPoint is used to generate the two-or three-way Venn diagrams. The four-way Venn diagram is largely unheard of. When someone is brave enough to tackle it manually, working out the numbers that should go in each of the 16 groups and entering the right number into the right group is usually done nervously!  \nINTRODUCTION  \nVenn diagrams where introduced in 1883 by John Venn (1834-1923) , the Hull born philosopher and mathematician. They are a great way to visualize elements that are unique to only one group and simultaneously visualize elements that intersect with other groups. They are symmetrical by nature and the number of groups in a Venn diagram = 2n (including the group outside the diagram) .  \nVenn diagrams are built into JMP Genomics. The web applications (Oliveros, 2018) and (Hulsen, 2018) can also be used to create Venn diagrams. Sometimes you may need to keep your data within SAS and this paper will demonstrate a macro that can be used in SAS® 9.4 to create Venn diagrams. Unlike the previous paper which shows how to produce Venn diagrams using quantitative data and a specified cutoff (Harris, V is for Venn Diagrams, 2013) , this paper shows how to produce Venn diagrams when the data is qualitative.  \nEssentially there are two sections to this macro. The first section calculates the numbers and percentages for each group of the Venn diagram and the second section produces the Venn diagram. Two types of Venn diagrams can be created: normal and proportional Venn diagrams. If you want to output a normal Venn diagram, where the circles or ellipses are all the same size, then Graph Template Language (GTL) will create the Venn diagram. If you want to output a proportional Venn diagram then the API for Google Charts will produce the Venn diagram; the inspiration for the Google Charts method came from the paper (Kruger, 2011) . In the paper “Creating Proportional Venn Diagrams Using Google and SAS®”, Kruger shows how the API for Google Charts can produce proportional Venn diagrams. This paper builds Kruger’s paper by also calculating the numbers for each group within the Venn diagram , and also allowing the numbers in each group to be displayed on the figure.  \nMACRO CALL  \nProgram 1 below illustrates how the macro call works for the %VENN macro.  \n\n| %macro venn(\u003Cbr>dsn = 1\u003Cbr>,proportional = 0 ,venn_diagram = 2\u003Cbr>\u003Cbr>,varA =\u003Cbr>,varB =\u003Cbr>,varC =\u003Cbr>,varD =\u003Cbr>\u003Cbr>\u003Cbr>4 | |\n| --- | --- |\n\n,LabelA = List A  \n,LabelB = List B    \n,LabelC = List C  \n,LabelD = List D  \n,percentage = 0 6  \n,prop_n_label = 0 7  \n,out_location = C: \\SGF2018\\VennDiagram\\output 8 ,outputfilename = Venn diagram 9  \n);  \nProgram 1 : Macro Call  \nDefine the data set name. An example data set named VENNDATA has been created in the program and is available for use. The data set is largely based on the SASHELP.CARS data set , but the dataset was modified so that some of the elements would be in the other Venn diagram groups. The information from (Jedi, 2018) was used to convert the data set into SAS datalines so that the data set could easily be created and used within the macro.  \nTo produce a normal Venn diagram set the PROPORTIONAL macro variable value to be 0, and if you want to produce a proportional Venn diagram set the macro variable value to be 1. Normal Venn diagrams are produced by default.  \nIf the PROPORTIONAL macro variable value is set to 0, then you are able to create two ,three , or fourway Venn diagrams, by ","cbCaipvAKogFXQkP","https://ap.wps.com/l/cbCaipvAKogFXQkP","pdf",746838,22,"English","# ABSTRACT\n# INTRODUCTION\n# MACRO CALL\n## Program 1 : Macro Call\n## Macro variable options and diagram types\n## Output datasets (WORK library)","[{\"question\":\"How does the paper generate Venn diagrams in SAS?\",\"answer\":\"It uses Graph Template Language (GTL) with DRAWOVAL and DRAWTEXT to draw normal Venn diagrams, while proportional Venn diagrams are produced using the Google Charts API approach within the %VENN macro.\"},{\"question\":\"What determines whether the output is a normal or proportional Venn diagram?\",\"answer\":\"Set the PROPORTIONAL macro variable to 0 for normal diagrams (numbers and intersections). Set PROPORTIONAL to 1 for proportional diagrams, where numbering behavior can be controlled via prop_n_label.\"},{\"question\":\"How many groups can be created, and which macro variables are required?\",\"answer\":\"For normal Venn diagrams, set VENN_DIAGRAM to 2, 3, or 4 to create two-, three-, or four-way diagrams. VARA and VARB are required for two-way; VARC is required for three-way; VARD is required for four-way.\"}]","PharmaSUG 2018-Paper DV-20 - V is for Venn Diagrams | PDF",55]