<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: PROC TEMPLATE: Hysteresis loop: Sample Code in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/PROC-TEMPLATE-Hysteresis-loop-Sample-Code/m-p/507925#M1553</link>
    <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; And, building on &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;'s example, if you have a variable&amp;nbsp; called DRUG and another variable called LBL (with the data labels), you can use SGPANEL to produce something like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="drug_chart_no_template.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/24400i8A3929AB52E34D06/image-size/large?v=v2&amp;amp;px=999" role="button" title="drug_chart_no_template.png" alt="drug_chart_no_template.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Without using PROC TEMPLATE. This does assume that all the data are in the one file. Here's how I imagined the data might be organized:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="drug_data.png" style="width: 323px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/24401iF8C6CCD3A1EE596A/image-size/large?v=v2&amp;amp;px=999" role="button" title="drug_data.png" alt="drug_data.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
    <pubDate>Sat, 27 Oct 2018 01:59:14 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2018-10-27T01:59:14Z</dc:date>
    <item>
      <title>PROC TEMPLATE: Hysteresis loop: Sample Code</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-TEMPLATE-Hysteresis-loop-Sample-Code/m-p/507587#M1470</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been trying to create a hysteresis loop using Proc Template. Unfortunately, I couldn't find any sample code for it. The plot needs to have 'Mean response on Y-Axis, Concentration on X-axis &amp;amp; Time presented on the line as a loop. I would appreciate if someone could help me with a sample code. The hysteresis loop should look like below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2018 21:10:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-TEMPLATE-Hysteresis-loop-Sample-Code/m-p/507587#M1470</guid>
      <dc:creator>DinoPut</dc:creator>
      <dc:date>2018-10-25T21:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TEMPLATE: Hysteresis loop: Sample Code</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-TEMPLATE-Hysteresis-loop-Sample-Code/m-p/507593#M1475</link>
      <description>Can you provide some sample data please.</description>
      <pubDate>Thu, 25 Oct 2018 21:17:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-TEMPLATE-Hysteresis-loop-Sample-Code/m-p/507593#M1475</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-10-25T21:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TEMPLATE: Hysteresis loop: Sample Code</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-TEMPLATE-Hysteresis-loop-Sample-Code/m-p/507596#M1478</link>
      <description>&lt;P&gt;I don't think you need PROC TEMPLATE here, SGPLOT seems to work fine, as long as the data is what you need.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input x y;
cards;
1 5
2 6
3 7
4 7.8
5 9
6 10
5 11
4 8
3 7.4 
2 6.5
1 5.5
;;;;
run;

proc sgplot data=have;
series x=x y=y / markers;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/237983"&gt;@DinoPut&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have been trying to create a hysteresis loop using Proc Template. Unfortunately, I couldn't find any sample code for it. The plot needs to have 'Mean response on Y-Axis, Concentration on X-axis &amp;amp; Time presented on the line as a loop. I would appreciate if someone could help me with a sample code. The hysteresis loop should look like below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2018 21:25:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-TEMPLATE-Hysteresis-loop-Sample-Code/m-p/507596#M1478</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-10-25T21:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TEMPLATE: Hysteresis loop: Sample Code</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-TEMPLATE-Hysteresis-loop-Sample-Code/m-p/507925#M1553</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; And, building on &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;'s example, if you have a variable&amp;nbsp; called DRUG and another variable called LBL (with the data labels), you can use SGPANEL to produce something like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="drug_chart_no_template.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/24400i8A3929AB52E34D06/image-size/large?v=v2&amp;amp;px=999" role="button" title="drug_chart_no_template.png" alt="drug_chart_no_template.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Without using PROC TEMPLATE. This does assume that all the data are in the one file. Here's how I imagined the data might be organized:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="drug_data.png" style="width: 323px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/24401iF8C6CCD3A1EE596A/image-size/large?v=v2&amp;amp;px=999" role="button" title="drug_data.png" alt="drug_data.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Sat, 27 Oct 2018 01:59:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-TEMPLATE-Hysteresis-loop-Sample-Code/m-p/507925#M1553</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-10-27T01:59:14Z</dc:date>
    </item>
  </channel>
</rss>

