<?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 Why is there a difference between two levels of a discrete distribution? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Why-is-there-a-difference-between-two-levels-of-a-discrete/m-p/427797#M22476</link>
    <description>&lt;P&gt;I get the feeling the following request is a lot simpler than I am making it out to be.&amp;nbsp; Assume I have a variable with a finite number of possible nominal values (A - E, for example).&amp;nbsp; According to a PROC ANOVA, there is a difference between the distribution of this variable at level 1 and at level 2.&amp;nbsp; I would like to determine which, if any, of the values occur with significantly different frequencies across the two levels, and I am just flat out stuck figuring out a simple way to program this or which PROC statements to use to move forward.&lt;/P&gt;</description>
    <pubDate>Mon, 15 Jan 2018 19:07:01 GMT</pubDate>
    <dc:creator>MFLoGrasso</dc:creator>
    <dc:date>2018-01-15T19:07:01Z</dc:date>
    <item>
      <title>Why is there a difference between two levels of a discrete distribution?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Why-is-there-a-difference-between-two-levels-of-a-discrete/m-p/427797#M22476</link>
      <description>&lt;P&gt;I get the feeling the following request is a lot simpler than I am making it out to be.&amp;nbsp; Assume I have a variable with a finite number of possible nominal values (A - E, for example).&amp;nbsp; According to a PROC ANOVA, there is a difference between the distribution of this variable at level 1 and at level 2.&amp;nbsp; I would like to determine which, if any, of the values occur with significantly different frequencies across the two levels, and I am just flat out stuck figuring out a simple way to program this or which PROC statements to use to move forward.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2018 19:07:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Why-is-there-a-difference-between-two-levels-of-a-discrete/m-p/427797#M22476</guid>
      <dc:creator>MFLoGrasso</dc:creator>
      <dc:date>2018-01-15T19:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Why is there a difference between two levels of a discrete distribution?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Why-is-there-a-difference-between-two-levels-of-a-discrete/m-p/427823#M22477</link>
      <description>&lt;P&gt;Apologies if I'm misreading your question, but using ANOVA with a nominal dependent variable&amp;nbsp;is not appropriate. It sounds like you want to see if the&amp;nbsp;distribution of values in one nominal variable differs across levels of another variable. If so, I'd use PROC FREQ and add the CHISQ option to the TABLES statement to get the Pearson Chi-Square test. To investigate how much each cell in the&amp;nbsp;two-way table deviates from&amp;nbsp;its expected value under the null hypothesis of no association between the two variables, you could also add the CELLCHI2 option. This would add an extra number to each cell showing (observed - expected)^2 / expected. Higher values mean greater deviation. The code would look something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=mydata;
  tables var1 * var2 / chisq cellchi2;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2018 20:24:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Why-is-there-a-difference-between-two-levels-of-a-discrete/m-p/427823#M22477</guid>
      <dc:creator>dagremu</dc:creator>
      <dc:date>2018-01-15T20:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: Why is there a difference between two levels of a discrete distribution?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Why-is-there-a-difference-between-two-levels-of-a-discrete/m-p/427834#M22478</link>
      <description>&lt;P&gt;Point taken.&amp;nbsp; I was doing a distribution analysis for many variables, nominal, ordinal, interval, and ratio, so I just did a massive ANOVA for speed's sake.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That said, can the cell's contribution to the chi-squared value be used in such a way to generate a p-value for its difference from the same cell value in the other level?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2018 20:59:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Why-is-there-a-difference-between-two-levels-of-a-discrete/m-p/427834#M22478</guid>
      <dc:creator>MFLoGrasso</dc:creator>
      <dc:date>2018-01-15T20:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: Why is there a difference between two levels of a discrete distribution?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Why-is-there-a-difference-between-two-levels-of-a-discrete/m-p/429121#M22546</link>
      <description>&lt;P&gt;I don't know about p-values, but one procedure that analyzes a cell's contribution to the chi-square value is the CORRESP procedure. &lt;A href="http://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_corresp_examples01.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en" target="_self"&gt;The doc has an example that shows the deviation from the expected value (under the assumption of independence).&lt;/A&gt;&amp;nbsp;In particular, see the table "Contributions to the Total Chi-Square Statistic."&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2018 14:09:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Why-is-there-a-difference-between-two-levels-of-a-discrete/m-p/429121#M22546</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-01-19T14:09:25Z</dc:date>
    </item>
  </channel>
</rss>

