<?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 PROC TTEST with weight in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/PROC-TTEST-with-weight/m-p/569624#M11842</link>
    <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm having some trouble with my code below. I want to test whether or not the mean NPS score of each profession category is statistically different from the population NPS mean (7.57). When looking at the output, I can tell that it's not actually applying the weight (professionweight).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC SORT data=name; by professioncategory; RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC TTEST data=name H0=7.57;&lt;BR /&gt;weight professionweight;&lt;BR /&gt;var NPS;&lt;BR /&gt;by professioncategory;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some additional information that might be useful:&lt;/P&gt;&lt;P&gt;The NPS variable has a range of 0 to 10&lt;/P&gt;&lt;P&gt;professioncategory is a categorical variable&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there additional code I need to include in order to ensure the professweight is utilized?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eva&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jun 2019 20:48:54 GMT</pubDate>
    <dc:creator>evat</dc:creator>
    <dc:date>2019-06-27T20:48:54Z</dc:date>
    <item>
      <title>PROC TTEST with weight</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-TTEST-with-weight/m-p/569624#M11842</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm having some trouble with my code below. I want to test whether or not the mean NPS score of each profession category is statistically different from the population NPS mean (7.57). When looking at the output, I can tell that it's not actually applying the weight (professionweight).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC SORT data=name; by professioncategory; RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC TTEST data=name H0=7.57;&lt;BR /&gt;weight professionweight;&lt;BR /&gt;var NPS;&lt;BR /&gt;by professioncategory;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some additional information that might be useful:&lt;/P&gt;&lt;P&gt;The NPS variable has a range of 0 to 10&lt;/P&gt;&lt;P&gt;professioncategory is a categorical variable&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there additional code I need to include in order to ensure the professweight is utilized?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eva&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 20:48:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-TTEST-with-weight/m-p/569624#M11842</guid>
      <dc:creator>evat</dc:creator>
      <dc:date>2019-06-27T20:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TTEST with weight</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-TTEST-with-weight/m-p/569633#M11843</link>
      <description>&lt;P&gt;If your weight variable is actually a count of individuals with a common NPS score then you likely need to use it as a FREQ and not weight variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Otherwise you may have to provide additional information of how you know it is not applied, possibly including actual data for at least one or two of the professioncategory values.&lt;/P&gt;
&lt;P&gt;&lt;U&gt;Observations&lt;/U&gt; with Weight values of 0, negative or missing will be completely excluded from the calculations.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 20:54:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-TTEST-with-weight/m-p/569633#M11843</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-06-27T20:54:51Z</dc:date>
    </item>
  </channel>
</rss>

