<?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: Proportion t-test in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proportion-t-test/m-p/60242#M17075</link>
    <description>OK, if Item 1 is 3495 for Males and 3458 for Females and you want to test whether&lt;BR /&gt;
&lt;BR /&gt;
3495/(3495+3458)  is within statistical variability of 3458/(3495+3458), &lt;BR /&gt;
&lt;BR /&gt;
then what I said earlier is correct.  That is the statistical equivalent to testing whether 3495/(3495+3458) is statistically different from 0.5 and you use the BINOMIAL option on FREQ to do it.&lt;BR /&gt;
&lt;BR /&gt;
If you want to test something else, then perhaps you can set it up as a contingency table for Item 1 so we can better understand the question.</description>
    <pubDate>Thu, 30 Jul 2009 15:39:42 GMT</pubDate>
    <dc:creator>Doc_Duke</dc:creator>
    <dc:date>2009-07-30T15:39:42Z</dc:date>
    <item>
      <title>Proportion t-test</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proportion-t-test/m-p/60236#M17069</link>
      <description>Okay I have a data set with the following layout&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Gender   Item1    Item2    Item3&lt;BR /&gt;
0           4000      5000    3843&lt;BR /&gt;
1           3000      5000    3454&lt;BR /&gt;
&lt;BR /&gt;
Note: I made this set up, it's to get the general idea.  I have 50 columns like this.&lt;BR /&gt;
&lt;BR /&gt;
Gender 0 = Male, Gender 1 = Female.  I want test the proportions for a difference.  Where for example Men buy 4/7 of item one and Females do 3/7.  I read a bunch of documentation, but all I can find is using proc freq.  Can someone help me to figure out how to do this?</description>
      <pubDate>Thu, 30 Jul 2009 00:46:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proportion-t-test/m-p/60236#M17069</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-07-30T00:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: Proportion t-test</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proportion-t-test/m-p/60237#M17070</link>
      <description>A better topic for the SAS Statistical Procedures forum.&lt;BR /&gt;
&lt;BR /&gt;
You seem to be missing a denominator.  Or maybe you need to frame the question more completely.  Are there 7 people?  Probably not.  Does each person examine an item and decide to buy it or not?  Those answers are important to determining the correct or best test.&lt;BR /&gt;
&lt;BR /&gt;
Just looking at the question as you have stated it, is 4/7 = 3/7?  That is really a one-sample test of a proportion, is 4/7 = 0.5 .  You can get that from FREQ using the BINOMIAL option.</description>
      <pubDate>Thu, 30 Jul 2009 13:08:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proportion-t-test/m-p/60237#M17070</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2009-07-30T13:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: Proportion t-test</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proportion-t-test/m-p/60238#M17071</link>
      <description>DOC, sorry if i posted this in the wrong area.&lt;BR /&gt;
&lt;BR /&gt;
Clearly 4/7 is not =.5.  Like I said, this is a VERY simplified data set.  I have much more complex numbers and more of them.  It was just away to show how my data is laid out.</description>
      <pubDate>Thu, 30 Jul 2009 13:48:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proportion-t-test/m-p/60238#M17071</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-07-30T13:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: Proportion t-test</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proportion-t-test/m-p/60239#M17072</link>
      <description>I think what he's saying is the null hypothesis is p=0.5 and the claim is that p is different from 0.5, i.e. is 4/7 significantly different from 0.5?</description>
      <pubDate>Thu, 30 Jul 2009 14:06:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proportion-t-test/m-p/60239#M17072</guid>
      <dc:creator>GreggB</dc:creator>
      <dc:date>2009-07-30T14:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: Proportion t-test</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proportion-t-test/m-p/60240#M17073</link>
      <description>&amp;gt; Clearly 4/7 is not =.5.  Like I said, this is a VERY&lt;BR /&gt;
&amp;gt; simplified data set.  I have much more complex&lt;BR /&gt;
&amp;gt; numbers and more of them.  It was just away to show&lt;BR /&gt;
&amp;gt; how my data is laid out.&lt;BR /&gt;
&lt;BR /&gt;
Hard for me to believe you really have "complex numbers". Complex as in: square root of negative 1.&lt;BR /&gt;
&lt;BR /&gt;
If you meant to say that you have a more complex dataset ... its really hard for us to know what to advise, as we can only see a very simple problem. If Doc's restatement of the issue doesn't meet your needs, then we need a much more clear description of what data you have, and what statistical comparisons you want to perform.</description>
      <pubDate>Thu, 30 Jul 2009 15:10:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proportion-t-test/m-p/60240#M17073</guid>
      <dc:creator>Paige</dc:creator>
      <dc:date>2009-07-30T15:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: Proportion t-test</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proportion-t-test/m-p/60241#M17074</link>
      <description>Numbers should never be an issue, just the process&lt;BR /&gt;
&lt;BR /&gt;
Gender Item1 Item2 Item3&lt;BR /&gt;
0             3495 5000 3843&lt;BR /&gt;
1             3458 5000 3454&lt;BR /&gt;
&lt;BR /&gt;
I need to test for a difference between 50 items by gender.  I have listed 3.  I need to run a test of proportions against 0 and 1 for item 1.  I need to also do the same thing for item 2, all the way up to item 50.  I know it's easy to eyeball these, but i have to do it for 50 items where it gets a little more complicated.</description>
      <pubDate>Thu, 30 Jul 2009 15:24:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proportion-t-test/m-p/60241#M17074</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-07-30T15:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: Proportion t-test</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proportion-t-test/m-p/60242#M17075</link>
      <description>OK, if Item 1 is 3495 for Males and 3458 for Females and you want to test whether&lt;BR /&gt;
&lt;BR /&gt;
3495/(3495+3458)  is within statistical variability of 3458/(3495+3458), &lt;BR /&gt;
&lt;BR /&gt;
then what I said earlier is correct.  That is the statistical equivalent to testing whether 3495/(3495+3458) is statistically different from 0.5 and you use the BINOMIAL option on FREQ to do it.&lt;BR /&gt;
&lt;BR /&gt;
If you want to test something else, then perhaps you can set it up as a contingency table for Item 1 so we can better understand the question.</description>
      <pubDate>Thu, 30 Jul 2009 15:39:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proportion-t-test/m-p/60242#M17075</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2009-07-30T15:39:42Z</dc:date>
    </item>
  </channel>
</rss>

