<?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: Scatter Plot Limits using STD in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Scatter-Plot-Limits-using-STD/m-p/418066#M4118</link>
    <description>&lt;P&gt;Awesome, I finally got that to work.&lt;/P&gt;</description>
    <pubDate>Mon, 04 Dec 2017 04:41:58 GMT</pubDate>
    <dc:creator>HSM9</dc:creator>
    <dc:date>2017-12-04T04:41:58Z</dc:date>
    <item>
      <title>Scatter Plot Limits using STD</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Scatter-Plot-Limits-using-STD/m-p/418061#M4115</link>
      <description>&lt;P&gt;I am creating a scatter plot where I want upper and and lower limits that use the code below. The issue is that when I try to define the variables something goes wrong when putting the standard deviation in the statement. An error comes up saying that I don't have enough arguments. How do I fix this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DATA WORK.Case_Control;&lt;BR /&gt;SET Epid.case_control_analysis;&lt;BR /&gt;Diff = BMI_GS - BMI_SR;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;UpperLimit = MEAN(Diff) + 1.96*STD(diff);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;LowerLimit = MEAN (Diff) - 1.96*STD(diff);&lt;/FONT&gt;&lt;BR /&gt;Bias = MEAN(diff);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc means data = WORK.Case_Control mean std;&lt;BR /&gt;Var Diff;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc SGplot data = WORK.Case_Control;&lt;/P&gt;&lt;P&gt;scatter X = BMI_GS Y = Diff;&lt;BR /&gt;label BMI_GS = "Gold-Standard BMI Measure";&lt;BR /&gt;label Diff = "Gold-Standard - Self-Report";&lt;BR /&gt;refline 0 / transparency = 0.1 lineattrs=(color=black pattern =1 thickness =3);&lt;BR /&gt;refline UpperLimit / transparency = 0.1 Label = ('Upper Limit of Agreement') lineattrs=(color=red pattern=2 thickness =3);&lt;BR /&gt;refline LowerLimit / transparency = 0.1 Label = ('Lower Limit of Agreement') lineattrs=(color=red pattern=2 thickness =3);&lt;BR /&gt;refline Bias / transparency = 0.1 Label = ('Bias') lineattrs=(color=red thickness =3);&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2017 04:08:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Scatter-Plot-Limits-using-STD/m-p/418061#M4115</guid>
      <dc:creator>HSM9</dc:creator>
      <dc:date>2017-12-04T04:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: Scatter Plot Limits using STD</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Scatter-Plot-Limits-using-STD/m-p/418064#M4117</link>
      <description>&lt;P&gt;You should define dataset case_control as:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table Case_Control as
select
    BMI_GS, BMI_SR,
    BMI_GS - BMI_SR as diff,
    mean(BMI_GS - BMI_SR) as bias,
    mean(BMI_GS - BMI_SR) - 1.96*std(BMI_GS - BMI_SR) as lowerLimit,
    mean(BMI_GS - BMI_SR) + 1.96*std(BMI_GS - BMI_SR) as upperLimit    
from Epid.case_control_analysis;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 04 Dec 2017 04:28:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Scatter-Plot-Limits-using-STD/m-p/418064#M4117</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2017-12-04T04:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: Scatter Plot Limits using STD</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Scatter-Plot-Limits-using-STD/m-p/418066#M4118</link>
      <description>&lt;P&gt;Awesome, I finally got that to work.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2017 04:41:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Scatter-Plot-Limits-using-STD/m-p/418066#M4118</guid>
      <dc:creator>HSM9</dc:creator>
      <dc:date>2017-12-04T04:41:58Z</dc:date>
    </item>
  </channel>
</rss>

