<?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: Help organizing data in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Help-organizing-data/m-p/539709#M7105</link>
    <description>&lt;P&gt;If SITE is&amp;nbsp;your "muscle attachment" location variable then add that to the MODEL statement.&amp;nbsp;If a different variable&amp;nbsp;make sure the appropriate variable is on both the CLASS and Model statements.&lt;/P&gt;</description>
    <pubDate>Fri, 01 Mar 2019 17:32:26 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2019-03-01T17:32:26Z</dc:date>
    <item>
      <title>Help organizing data</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Help-organizing-data/m-p/539671#M7099</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was wondering if there was a quick workaround to a problem I'm having with my data in SAS 9.4. Because of the way my data is structured, I'm not sure how to get the results I want. I'm using SAS to analyze the effects that things like age, sex, and region have on some metrics I collected from muscle attachment sites (such as porosity, bone growth, etc). I have been working with another graduate student in a statistics consulting service on my campus, but I'm not able to go back and visit him, so I'm having some trouble. Here is the code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc glm data=data_full plots = diagnostics;&lt;BR /&gt;class Site Age Pre_Post Sex Region Enthesis;&lt;BR /&gt;model metric = Age Pre_Post Sex Region Enthesis/ ss3 solution;&lt;BR /&gt;lsmeans age/pdiff adjust = tukey;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a sample of my data and the organization of the columns:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 - ID number (all of the 96's are the same individual, all of the 172's are the same individual)&lt;/P&gt;&lt;P&gt;2 - different muscle attachment&lt;/P&gt;&lt;P&gt;3-18 - various metrics, such as bone growth, bone porosity, etc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;19 - site&lt;/P&gt;&lt;P&gt;20 - age&lt;/P&gt;&lt;P&gt;21 - time period&lt;/P&gt;&lt;P&gt;22 - sex&lt;/P&gt;&lt;P&gt;23 - region&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;96 SUBSCAPULARIS 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 STENJEVEC YA PREOTTO F CONTINENTAL&lt;BR /&gt;96 SUPRASPINATUS 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 STENJEVEC YA PREOTTO F CONTINENTAL&lt;BR /&gt;96 INFRASPINATUS 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 STENJEVEC YA PREOTTO F CONTINENTAL&lt;BR /&gt;96 TERESMINOR 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 STENJEVEC YA PREOTTO F CONTINENTAL&lt;/P&gt;&lt;P&gt;172 SUBSCAPULARIS 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 STENJEVEC MA PREOTTO M CONTINENTAL&lt;BR /&gt;172 SUPRASPINATUS 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 STENJEVEC MA PREOTTO M CONTINENTAL&lt;BR /&gt;172 INFRASPINATUS 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 STENJEVEC MA PREOTTO M CONTINENTAL&lt;BR /&gt;172 TERESMINOR 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 STENJEVEC MA PREOTTO M CONTINENTAL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I'm getting with my code:&lt;/P&gt;&lt;P&gt;- for bone porosity, the triceps is different than the supraspinatus, and the triceps has a higher score.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want:&lt;/P&gt;&lt;P&gt;- summary statistics for each muscle attachment (what the mean value is for each of the metrics &lt;STRONG&gt;at each enthesis&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;- a comparison of sex vs muscle attachment score (I'm kind of getting this now, but I'm getting "for bone porosity, males are higher than females" when what I want is, "for bone porosity, males are higher than females &lt;STRONG&gt;at this muscle attachment&lt;/STRONG&gt;")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this all makes sense. Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 15:46:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Help-organizing-data/m-p/539671#M7099</guid>
      <dc:creator>UnGiffted</dc:creator>
      <dc:date>2019-03-01T15:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: Help organizing data</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Help-organizing-data/m-p/539709#M7105</link>
      <description>&lt;P&gt;If SITE is&amp;nbsp;your "muscle attachment" location variable then add that to the MODEL statement.&amp;nbsp;If a different variable&amp;nbsp;make sure the appropriate variable is on both the CLASS and Model statements.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 17:32:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Help-organizing-data/m-p/539709#M7105</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-03-01T17:32:26Z</dc:date>
    </item>
  </channel>
</rss>

