<?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 Relation in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Relation/m-p/674261#M79299</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Codepgn.PNG" style="width: 486px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/47904i9B974854AB401896/image-size/large?v=v2&amp;amp;px=999" role="button" title="Codepgn.PNG" alt="Codepgn.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If I wanted to see if the Age and HR (Heart rate) of the person were related to each other using the "proc" method, how would I do so, using descriptive statistics? Also if the Age and HR had any relation, how would I check if the SBP and Chol have any impact on that relation if it does exist? Also I was trying to figure out a way to see how many males versus females are in the health table using descriptive statistics, but none of the graphs or tools in the statistics section seem to help. So I was also hoping there was a way to code that.&lt;/P&gt;&lt;P&gt;(I am a complete novice at SAS, so please don't give too advanced answers please.)&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;A Fellow Highschool Student&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Aug 2020 04:04:37 GMT</pubDate>
    <dc:creator>Xpcutebear</dc:creator>
    <dc:date>2020-08-04T04:04:37Z</dc:date>
    <item>
      <title>Relation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Relation/m-p/674240#M79297</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Codepgn.PNG" style="width: 486px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/47902i0D754E8D5F47F646/image-size/large?v=v2&amp;amp;px=999" role="button" title="Codepgn.PNG" alt="Codepgn.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If I wanted to see if the Age and HR (Heart rate) of the person were related to each other using the "proc" method, how would I do so, using descriptive statistics? Also if the Age and HR had any relation, how would I check if the SBP and Chol have any impact on that relation if it does exist?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;A Fellow Highschool Student&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 01:24:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Relation/m-p/674240#M79297</guid>
      <dc:creator>Xpcutebear</dc:creator>
      <dc:date>2020-08-04T01:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: Relation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Relation/m-p/674251#M79298</link>
      <description>Also is there a way to see how many males versus female are in the health table using descriptive statistics?</description>
      <pubDate>Tue, 04 Aug 2020 02:28:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Relation/m-p/674251#M79298</guid>
      <dc:creator>Xpcutebear</dc:creator>
      <dc:date>2020-08-04T02:28:51Z</dc:date>
    </item>
    <item>
      <title>Relation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Relation/m-p/674261#M79299</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Codepgn.PNG" style="width: 486px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/47904i9B974854AB401896/image-size/large?v=v2&amp;amp;px=999" role="button" title="Codepgn.PNG" alt="Codepgn.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If I wanted to see if the Age and HR (Heart rate) of the person were related to each other using the "proc" method, how would I do so, using descriptive statistics? Also if the Age and HR had any relation, how would I check if the SBP and Chol have any impact on that relation if it does exist? Also I was trying to figure out a way to see how many males versus females are in the health table using descriptive statistics, but none of the graphs or tools in the statistics section seem to help. So I was also hoping there was a way to code that.&lt;/P&gt;&lt;P&gt;(I am a complete novice at SAS, so please don't give too advanced answers please.)&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;A Fellow Highschool Student&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 04:04:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Relation/m-p/674261#M79299</guid>
      <dc:creator>Xpcutebear</dc:creator>
      <dc:date>2020-08-04T04:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: Relation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Relation/m-p/674289#M79300</link>
      <description>&lt;P&gt;Build the means of your variables by age_group (or age, if your sample is significantly larger than what you posted).&lt;/P&gt;
&lt;P&gt;Use &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=proc&amp;amp;docsetTarget=p0aq3hsvflztfzn1xa2wt6s35oy6.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;PROC SUMMARY&lt;/A&gt;, e.g.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc summary data=have mean print;
class age_group;
var hr;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 04 Aug 2020 08:55:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Relation/m-p/674289#M79300</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-08-04T08:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: Relation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Relation/m-p/674368#M79302</link>
      <description>&lt;P&gt;Relative to these two questions:&amp;nbsp;&lt;SPAN&gt;If I wanted to see if the Age and HR (Heart rate) of the person were related to each other using the "proc" method, how would I do so, using descriptive statistics? Also if the Age and HR had any relation, how would I check if the SBP and Chol have any impact on that relation if it does exist?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For this, PROC CORR is probably the easiest to understand.&amp;nbsp; This will give the correlation between the two variables, which is a measure of how related they are.&amp;nbsp; For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc corr data=have;
var age hr;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This will give you the correlation between Age and HR.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The second question is a bit trickier.&amp;nbsp; If you "partial out" the effects of SBP and Chol you will get the relationship between Age and HR after removing any effects due to SBP and Chol.&amp;nbsp; This would look like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc corr data=have;
var age hr;
partial SBP Chol;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This removes the effects of BOTH of the variables.&amp;nbsp; You could see how removing the effect of just one by specifying only that variable in the PARTIAL statement&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 14:31:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Relation/m-p/674368#M79302</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-08-04T14:31:43Z</dc:date>
    </item>
  </channel>
</rss>

