<?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 Help with proc glm syntax in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Help-with-proc-glm-syntax/m-p/554518#M9517</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm new to SAS and am working on a research project.&amp;nbsp; I would like to run proc glm on a data set but would like to exclude some observations in the data set so that I can compare apples to apples.&amp;nbsp; So here's the problem...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working on analyzing patient satisfaction scores but I want to eliminate observations which have a response rate of greater than 25 or less than 17 so my syntax is as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc glm;&lt;/P&gt;&lt;P&gt;class var1 var2 var3;&lt;/P&gt;&lt;P&gt;model dvar=var1 var2 var3;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this syntax, can I use the if-then or between function for a totally different variable (var4)?&amp;nbsp; Variable 4 being response rate.&amp;nbsp; I'd like to use all observations with response rates between 17 and 25 percent so that I can eliminate the few outliers that are extremely high or low.&amp;nbsp; 17-25 percent is the average response rate.&lt;/P&gt;</description>
    <pubDate>Sat, 27 Apr 2019 21:15:17 GMT</pubDate>
    <dc:creator>newbie10</dc:creator>
    <dc:date>2019-04-27T21:15:17Z</dc:date>
    <item>
      <title>Help with proc glm syntax</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Help-with-proc-glm-syntax/m-p/554518#M9517</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm new to SAS and am working on a research project.&amp;nbsp; I would like to run proc glm on a data set but would like to exclude some observations in the data set so that I can compare apples to apples.&amp;nbsp; So here's the problem...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working on analyzing patient satisfaction scores but I want to eliminate observations which have a response rate of greater than 25 or less than 17 so my syntax is as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc glm;&lt;/P&gt;&lt;P&gt;class var1 var2 var3;&lt;/P&gt;&lt;P&gt;model dvar=var1 var2 var3;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this syntax, can I use the if-then or between function for a totally different variable (var4)?&amp;nbsp; Variable 4 being response rate.&amp;nbsp; I'd like to use all observations with response rates between 17 and 25 percent so that I can eliminate the few outliers that are extremely high or low.&amp;nbsp; 17-25 percent is the average response rate.&lt;/P&gt;</description>
      <pubDate>Sat, 27 Apr 2019 21:15:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Help-with-proc-glm-syntax/m-p/554518#M9517</guid>
      <dc:creator>newbie10</dc:creator>
      <dc:date>2019-04-27T21:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: Help with proc glm syntax</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Help-with-proc-glm-syntax/m-p/554520#M9518</link>
      <description>&lt;P&gt;How about:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glm data=myUnnamedData;
where var4 between 0.17 and 0.25;
class var1 var2 var3;
model dvar=var1 var2 var3;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 27 Apr 2019 21:30:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Help-with-proc-glm-syntax/m-p/554520#M9518</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2019-04-27T21:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: Help with proc glm syntax</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Help-with-proc-glm-syntax/m-p/554521#M9519</link>
      <description>&lt;P&gt;Thank you!&amp;nbsp; I'll try this.&lt;/P&gt;</description>
      <pubDate>Sat, 27 Apr 2019 21:32:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Help-with-proc-glm-syntax/m-p/554521#M9519</guid>
      <dc:creator>newbie10</dc:creator>
      <dc:date>2019-04-27T21:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: Help with proc glm syntax</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Help-with-proc-glm-syntax/m-p/554522#M9520</link>
      <description>&lt;P&gt;It worked!&amp;nbsp; Thanks a bunch!&lt;/P&gt;</description>
      <pubDate>Sat, 27 Apr 2019 21:45:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Help-with-proc-glm-syntax/m-p/554522#M9520</guid>
      <dc:creator>newbie10</dc:creator>
      <dc:date>2019-04-27T21:45:28Z</dc:date>
    </item>
  </channel>
</rss>

