<?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 TTEST WEIGHT NOT WORKING in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-TTEST-WEIGHT-NOT-WORKING/m-p/236379#M12520</link>
    <description>&lt;P&gt;Well, if variable WEIGHT1 contains integer values, which are the frequency of occurrence of each observation, the FREQ statement is appropriate, not the WEIGHT statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That said, you have to make sure that the rest of your statements in conjunction with your data is compatible with the assumptions of a two-sample t-test. For example, do you really have two independent samples from separate groups? What is the relationship between items represented by observations with BRAND=&amp;amp;company and &lt;SPAN&gt;items represented by observations with &lt;/SPAN&gt; BRAND="Overall"?&lt;/P&gt;</description>
    <pubDate>Wed, 25 Nov 2015 11:44:22 GMT</pubDate>
    <dc:creator>FreelanceReinh</dc:creator>
    <dc:date>2015-11-25T11:44:22Z</dc:date>
    <item>
      <title>PROC TTEST WEIGHT NOT WORKING</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-TTEST-WEIGHT-NOT-WORKING/m-p/236351#M12514</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods output Statistics=Statistics1 TTests=TTests &amp;nbsp;Equality=Equality;
proc ttest data=&amp;amp;lib..&amp;amp;d ci=none;
weight weight1;
where BRAND in ("Overall",&amp;amp;company) ;;
class &amp;amp;condition;
var &amp;amp;outcome;
run;
ods output close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;When i run the following code, my output in the Statistics1&amp;nbsp;dataset is not weighted even though i have specified the weight option? Is there a work around for this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2015 10:18:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-TTEST-WEIGHT-NOT-WORKING/m-p/236351#M12514</guid>
      <dc:creator>timkill1982</dc:creator>
      <dc:date>2015-11-25T10:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TTEST WEIGHT NOT WORKING</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-TTEST-WEIGHT-NOT-WORKING/m-p/236362#M12515</link>
      <description>&lt;P&gt;How do you recognize that it is not weighted? Does Statistics1 remain completely unchanged if you alter the relevant values of WEIGHT1?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sometimes people confuse the WEIGHT and the FREQ statement. What is the meaning of your WEIGHT1 values?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ideally, you would provide some example data where we can see the issue.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2015 10:47:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-TTEST-WEIGHT-NOT-WORKING/m-p/236362#M12515</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2015-11-25T10:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TTEST WEIGHT NOT WORKING</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-TTEST-WEIGHT-NOT-WORKING/m-p/236363#M12516</link>
      <description>&lt;P&gt;Yes Statistics1 remains unchanged. By appliying the weights I would have assumed that the N values would have changed, and result in a change in the Mean values.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2015 10:49:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-TTEST-WEIGHT-NOT-WORKING/m-p/236363#M12516</guid>
      <dc:creator>timkill1982</dc:creator>
      <dc:date>2015-11-25T10:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TTEST WEIGHT NOT WORKING</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-TTEST-WEIGHT-NOT-WORKING/m-p/236364#M12517</link>
      <description>&lt;P&gt;To modify the N values, you have to use the FREQ statement of PROC TTEST.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2015 10:52:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-TTEST-WEIGHT-NOT-WORKING/m-p/236364#M12517</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2015-11-25T10:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TTEST WEIGHT NOT WORKING</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-TTEST-WEIGHT-NOT-WORKING/m-p/236366#M12518</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods output Statistics=Statistics1 TTests=TTests  Equality=Equality;
proc ttest data=&amp;amp;lib..&amp;amp;d ci=none;
freq weight1;
/*weight weight1*/
where BRAND in ("Overall",&amp;amp;company) ;;
class &amp;amp;condition;
var &amp;amp;outcome;
run;
ods output close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;So my solution should be as above?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2015 10:59:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-TTEST-WEIGHT-NOT-WORKING/m-p/236366#M12518</guid>
      <dc:creator>timkill1982</dc:creator>
      <dc:date>2015-11-25T10:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TTEST WEIGHT NOT WORKING</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-TTEST-WEIGHT-NOT-WORKING/m-p/236378#M12519</link>
      <description>&lt;TABLE cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;HR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;EM&gt;FREQ Statement&lt;/EM&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;DIV class="paraReplaced"&gt;&lt;EM&gt;FREQ &lt;SPAN class="emph"&gt;variable&lt;/SPAN&gt; ;&lt;/EM&gt;&lt;/DIV&gt;&lt;P&gt;&lt;EM&gt;The variable in the &lt;A href="http://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/statug_ttest_sect005.htm" target="_blank"&gt;FREQ&lt;/A&gt; statement identifies a variable that contains the frequency of occurrence of each observation. PROC TTEST treats each observation as if it appears &lt;IMG src="http://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/images/statug_ttest0020.png" border="0" alt="" /&gt; times, where &lt;IMG src="http://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/images/statug_ttest0020.png" border="0" alt="" /&gt; is the value of the &lt;A href="http://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/statug_ttest_sect005.htm" target="_blank"&gt;FREQ&lt;/A&gt; variable for the observation. If the value is not an integer, only the integer portion is used. &lt;STRONG&gt;If the frequency value is less than 1 or is missing, the observation is not used in the analysis.&lt;/STRONG&gt; When the &lt;A href="http://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/statug_ttest_sect005.htm" target="_blank"&gt;FREQ&lt;/A&gt; statement is not specified, each observation is assigned a frequency of 1. The &lt;A href="http://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/statug_ttest_sect005.htm" target="_blank"&gt;FREQ&lt;/A&gt; statement cannot be used if the &lt;A href="http://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/statug_ttest_sect002.htm#statug.ttest.tteprocdata" target="_blank"&gt;DATA=&lt;/A&gt;data set contains statistics instead of the original observations.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This would there for exclude a lot of my variables if the weight is less than 1....&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2015 11:41:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-TTEST-WEIGHT-NOT-WORKING/m-p/236378#M12519</guid>
      <dc:creator>timkill1982</dc:creator>
      <dc:date>2015-11-25T11:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TTEST WEIGHT NOT WORKING</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-TTEST-WEIGHT-NOT-WORKING/m-p/236379#M12520</link>
      <description>&lt;P&gt;Well, if variable WEIGHT1 contains integer values, which are the frequency of occurrence of each observation, the FREQ statement is appropriate, not the WEIGHT statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That said, you have to make sure that the rest of your statements in conjunction with your data is compatible with the assumptions of a two-sample t-test. For example, do you really have two independent samples from separate groups? What is the relationship between items represented by observations with BRAND=&amp;amp;company and &lt;SPAN&gt;items represented by observations with &lt;/SPAN&gt; BRAND="Overall"?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2015 11:44:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-TTEST-WEIGHT-NOT-WORKING/m-p/236379#M12520</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2015-11-25T11:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TTEST WEIGHT NOT WORKING</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-TTEST-WEIGHT-NOT-WORKING/m-p/236393#M12521</link>
      <description>&lt;P&gt;Here's an explanation of &lt;A href="http://blogs.sas.com/content/iml/2013/09/13/frequencies-vs-weights-in-regression.html" target="_self"&gt;the difference between the WEIGHT and FREQ statements &lt;/A&gt;in SAS. Although the discussion is for regression, the same ideas hold for PROC TTEST.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2015 13:18:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-TTEST-WEIGHT-NOT-WORKING/m-p/236393#M12521</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2015-11-25T13:18:12Z</dc:date>
    </item>
  </channel>
</rss>

