<?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 freq chisq in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/proc-freq-chisq/m-p/609138#M17822</link>
    <description>&lt;P&gt;aval 0, 1, 1.5 2 is a categorical variable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;aval count counts the number of each aval grades happen in each eye.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want the test of association within eyes for each subject between all subjects.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc freq doesn't provide me any statistics when I use the proc freq the way I use it. Maybe there is a better way to get my desired outcomes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Dec 2019 18:04:38 GMT</pubDate>
    <dc:creator>mona4u</dc:creator>
    <dc:date>2019-12-03T18:04:38Z</dc:date>
    <item>
      <title>proc freq chisq</title>
      <link>https://communities.sas.com/t5/New-SAS-User/proc-freq-chisq/m-p/609124#M17819</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to calculate the association within subjects. Each subject has left and right eye and they have a grade for the test is aval and the count for the times they have the grade each time they did the test is aval_count.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to test the association by the following code and SAS didn't provide me the desired output.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm open to suggestions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data have;&lt;BR /&gt;input usubjid :$20. aval alat $ aval_count;&lt;BR /&gt;datalines;&lt;BR /&gt;7751.000061 1.5 Left 3&lt;BR /&gt;7751.000061 1 Right 1&lt;BR /&gt;7751.000061 1.5 Right 2&lt;BR /&gt;7751.000824 1.5 Left 2&lt;BR /&gt;7751.000824 2 Left 1&lt;BR /&gt;7751.000824 1.5 Right 1&lt;BR /&gt;7751.000824 2 Right 2&lt;BR /&gt;7751.002940 1 Left 2&lt;BR /&gt;7751.002940 1.5 Left 1&lt;BR /&gt;7751.002940 1 Right 2&lt;BR /&gt;7751.002940 1.5 Right 1&lt;BR /&gt;7751.003306 1.5 Left 2&lt;BR /&gt;7751.003306 2 Left 1&lt;BR /&gt;7751.003306 1.5 Right 3&lt;BR /&gt;7751.003520 1.5 Left 3&lt;BR /&gt;7751.003520 1 Right 1&lt;BR /&gt;7751.003520 1.5 Right 2&lt;BR /&gt;7820.27252833 0 Left 3&lt;BR /&gt;7820.27252833 0 Right 3&lt;BR /&gt;7820.27253759 0 Left 3&lt;BR /&gt;7820.27253759 0 Right 3&lt;BR /&gt;7820.27253776 0 Left 3&lt;BR /&gt;7820.27253776 0 Right 3&lt;BR /&gt;7820.27265336 0 Left 3&lt;BR /&gt;7820.27265336 0 Right 3&lt;BR /&gt;7820.27270639 0 Left 3&lt;BR /&gt;7820.27270639 0 Right 2&lt;BR /&gt;7820.27270639 1 Right 1&lt;BR /&gt;7820.29087999 0 Left 3&lt;BR /&gt;7820.29087999 0 Right 3&lt;BR /&gt;7820.40672349 0 Left 3&lt;BR /&gt;7820.40672349 0 Right 3&lt;BR /&gt;7820.45921053 0 Left 3&lt;BR /&gt;7820.45921053 0 Right 3&lt;BR /&gt;7820.50956338 0 Left 3&lt;BR /&gt;7820.50956338 0 Right 3&lt;BR /&gt;7820.51799541 0 Left 1&lt;BR /&gt;7820.51799541 0 Right 1&lt;BR /&gt;7820.51968934 0 Left 2&lt;BR /&gt;7820.51968934 1 Left 1&lt;BR /&gt;7820.51968934 0 Right 2&lt;BR /&gt;7820.51968934 1 Right 1&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc freq data=have;&lt;BR /&gt;tables USUBJID*ALAT*aval/ chisq measures;&lt;BR /&gt;weight aval_count;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mona&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2019 17:36:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/proc-freq-chisq/m-p/609124#M17819</guid>
      <dc:creator>mona4u</dc:creator>
      <dc:date>2019-12-03T17:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq chisq</title>
      <link>https://communities.sas.com/t5/New-SAS-User/proc-freq-chisq/m-p/609132#M17821</link>
      <description>&lt;P&gt;Your counts within levels of Usubjid as shown are pretty small for just about any purpose with 6 seeming to be the typical number of "grades". Splitting that by just about any other variable makes the cell counts so small to be almost meaningless.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do find the structure of your Usubjid to be a tad odd. Typically most identification schemes don't go in for decimals. By any chance did you actually intend to this test using just the first 4 characters of the Usubjid value?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please describe the "desired output" since it appears that you have some idea of what you wanted. Please not that Chi-squares don't like cells with 0 counts as you likely got in your output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might try using Usubjid as a BY variable and remove it from the Tables statement. That would at least reduce the number of 0 cell sizes but then you are going to have groups with only one value of Aval. Which isn't really going to be very testable.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2019 17:55:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/proc-freq-chisq/m-p/609132#M17821</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-12-03T17:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq chisq</title>
      <link>https://communities.sas.com/t5/New-SAS-User/proc-freq-chisq/m-p/609138#M17822</link>
      <description>&lt;P&gt;aval 0, 1, 1.5 2 is a categorical variable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;aval count counts the number of each aval grades happen in each eye.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want the test of association within eyes for each subject between all subjects.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc freq doesn't provide me any statistics when I use the proc freq the way I use it. Maybe there is a better way to get my desired outcomes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2019 18:04:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/proc-freq-chisq/m-p/609138#M17822</guid>
      <dc:creator>mona4u</dc:creator>
      <dc:date>2019-12-03T18:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq chisq</title>
      <link>https://communities.sas.com/t5/New-SAS-User/proc-freq-chisq/m-p/609148#M17823</link>
      <description>What does this mean: "I want the test of association within eyes for each subject between all subjects."? What is that as a hypothesis?</description>
      <pubDate>Tue, 03 Dec 2019 19:28:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/proc-freq-chisq/m-p/609148#M17823</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-12-03T19:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq chisq</title>
      <link>https://communities.sas.com/t5/New-SAS-User/proc-freq-chisq/m-p/609151#M17824</link>
      <description>&lt;P&gt;test the association between eyes for each subject and for all subjects&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2019 19:42:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/proc-freq-chisq/m-p/609151#M17824</guid>
      <dc:creator>mona4u</dc:creator>
      <dc:date>2019-12-03T19:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq chisq</title>
      <link>https://communities.sas.com/t5/New-SAS-User/proc-freq-chisq/m-p/609152#M17825</link>
      <description>That's not a hypothesis &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;</description>
      <pubDate>Tue, 03 Dec 2019 19:45:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/proc-freq-chisq/m-p/609152#M17825</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-12-03T19:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq chisq</title>
      <link>https://communities.sas.com/t5/New-SAS-User/proc-freq-chisq/m-p/609169#M17828</link>
      <description>&lt;P&gt;I don't have a hypothesis I just want to know how they are correlated either using this procedure or other procedures.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2019 20:43:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/proc-freq-chisq/m-p/609169#M17828</guid>
      <dc:creator>mona4u</dc:creator>
      <dc:date>2019-12-03T20:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq chisq</title>
      <link>https://communities.sas.com/t5/New-SAS-User/proc-freq-chisq/m-p/609170#M17829</link>
      <description>What does correlated mean though? If there isn't a clear definition of what you're trying to do it's almost impossible to write the code. &lt;BR /&gt;You have paired data but a few measures, one for each eye I assume. I'd start by graphing it and seeing what that shows I suspect. Weight the scatter plot by the # of tests as a starting point. &lt;BR /&gt;</description>
      <pubDate>Tue, 03 Dec 2019 20:45:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/proc-freq-chisq/m-p/609170#M17829</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-12-03T20:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq chisq</title>
      <link>https://communities.sas.com/t5/New-SAS-User/proc-freq-chisq/m-p/609177#M17831</link>
      <description>&lt;P&gt;Hi Reeza,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to see the correlation between the subjects' scores between their eyes left and right.&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is a repeated measurement and aval record the grade of the test.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure how to start as the data is a bit complicated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mona&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2019 21:09:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/proc-freq-chisq/m-p/609177#M17831</guid>
      <dc:creator>mona4u</dc:creator>
      <dc:date>2019-12-03T21:09:49Z</dc:date>
    </item>
  </channel>
</rss>

