<?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: t-test for dependent samples in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/t-test-for-dependent-samples/m-p/733401#M228540</link>
    <description>&lt;P&gt;I don't know what this means:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;We have a sample represents national number and we disaggregate it using an index.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Can you explain how the study was conducted and how the statistics are arrived at?&lt;/P&gt;</description>
    <pubDate>Tue, 13 Apr 2021 18:11:07 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2021-04-13T18:11:07Z</dc:date>
    <item>
      <title>t-test for dependent samples</title>
      <link>https://communities.sas.com/t5/SAS-Programming/t-test-for-dependent-samples/m-p/733375#M228528</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm estimating the health indicators among provincial populations, and would like to compare them with the estimations from total population in Canada. So, the populations samples would be dependent, since the provincial populations are included in the total sample size. Is there any t-test I can do in SAS? Or in SUDAAN?&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mandana&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2021 16:14:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/t-test-for-dependent-samples/m-p/733375#M228528</guid>
      <dc:creator>mandan414</dc:creator>
      <dc:date>2021-04-13T16:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: t-test for dependent samples</title>
      <link>https://communities.sas.com/t5/SAS-Programming/t-test-for-dependent-samples/m-p/733379#M228531</link>
      <description>&lt;P&gt;Are you assuming that the national numbers are known, and you are estimating the provincial numbers from your sample of the population?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or are you estimating both national and provincial numbers from a sample?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2021 16:27:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/t-test-for-dependent-samples/m-p/733379#M228531</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-04-13T16:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: t-test for dependent samples</title>
      <link>https://communities.sas.com/t5/SAS-Programming/t-test-for-dependent-samples/m-p/733380#M228532</link>
      <description>&lt;P&gt;I have the national numbers and then categorize it to the provincial samples by an index.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2021 16:30:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/t-test-for-dependent-samples/m-p/733380#M228532</guid>
      <dc:creator>mandan414</dc:creator>
      <dc:date>2021-04-13T16:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: t-test for dependent samples</title>
      <link>https://communities.sas.com/t5/SAS-Programming/t-test-for-dependent-samples/m-p/733382#M228533</link>
      <description>&lt;P&gt;Yes, but are the national numbers from the same study as the provincial numbers? Or can you assume that wherever these national numbers come from, they are "fixed" or "known"?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2021 16:35:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/t-test-for-dependent-samples/m-p/733382#M228533</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-04-13T16:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: t-test for dependent samples</title>
      <link>https://communities.sas.com/t5/SAS-Programming/t-test-for-dependent-samples/m-p/733393#M228538</link>
      <description>&lt;P&gt;We have a sample represents national number and we disaggregate it using an index. In this way, we are comparing sub sample vs sample or doing overlapping comparison. Thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2021 17:53:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/t-test-for-dependent-samples/m-p/733393#M228538</guid>
      <dc:creator>mandan414</dc:creator>
      <dc:date>2021-04-13T17:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: t-test for dependent samples</title>
      <link>https://communities.sas.com/t5/SAS-Programming/t-test-for-dependent-samples/m-p/733401#M228540</link>
      <description>&lt;P&gt;I don't know what this means:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;We have a sample represents national number and we disaggregate it using an index.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Can you explain how the study was conducted and how the statistics are arrived at?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2021 18:11:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/t-test-for-dependent-samples/m-p/733401#M228540</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-04-13T18:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: t-test for dependent samples</title>
      <link>https://communities.sas.com/t5/SAS-Programming/t-test-for-dependent-samples/m-p/733671#M228601</link>
      <description>&lt;P&gt;Let's say it in this way:&lt;/P&gt;&lt;P&gt;we have a sample of a population and then disaggregate it to sub samples.&amp;nbsp; How to do the test of significant between the estimations for sample vs subsample? For example, we have a sample of population and calculate the average blood pressure for the population. Then, we disaggregate the population by age and estimate the average blood pressure for each age group. Finally, we would like to test whether the difference in average blood pressure between each age group vs the total population is significant.&amp;nbsp; Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 10:50:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/t-test-for-dependent-samples/m-p/733671#M228601</guid>
      <dc:creator>mandan414</dc:creator>
      <dc:date>2021-04-14T10:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: t-test for dependent samples</title>
      <link>https://communities.sas.com/t5/SAS-Programming/t-test-for-dependent-samples/m-p/733676#M228604</link>
      <description>&lt;P&gt;A common test is the One-way Analysis of Variance test, where you compare each group's mean to the overall mean. However, since you are working with survey data, I think PROC SURVEYMEANS would work. Here is an example that is similar to yours:&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_surveymeans_examples06.htm" target="_blank" rel="noopener"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_surveymeans_examples06.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I believe you can also get the exact statistical tests you want from PROC SURVEYREG with a CLASS statement and the SOLUTION option in the MODEL statement.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 11:02:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/t-test-for-dependent-samples/m-p/733676#M228604</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-04-14T11:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: t-test for dependent samples</title>
      <link>https://communities.sas.com/t5/SAS-Programming/t-test-for-dependent-samples/m-p/733680#M228606</link>
      <description>&lt;P&gt;Thank you for the response.&lt;/P&gt;&lt;P&gt;The example you sent is the test between the subgroups. I need to test the total group vs the subgroups.&lt;/P&gt;&lt;P&gt;I found this one but not quite sure whether ANOM is for survey data or not.&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Statistical-Procedures/Statistics-for-comparing-a-population-with-a-subset-of-that/td-p/210627" target="_blank"&gt;https://communities.sas.com/t5/Statistical-Procedures/Statistics-for-comparing-a-population-with-a-subset-of-that/td-p/210627&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 11:14:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/t-test-for-dependent-samples/m-p/733680#M228606</guid>
      <dc:creator>mandan414</dc:creator>
      <dc:date>2021-04-14T11:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: t-test for dependent samples</title>
      <link>https://communities.sas.com/t5/SAS-Programming/t-test-for-dependent-samples/m-p/733683#M228608</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/274426"&gt;@mandan414&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The example you sent is the test between the subgroups. I need to test the total group vs the subgroups.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I disagree. If you scroll down, you will see plots where clearly each group are compared to the full sample.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;I found this one but not quite sure whether ANOM is for survey data or not.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Statistical-Procedures/Statistics-for-comparing-a-population-with-a-subset-of-that/td-p/210627" target="_blank" rel="noopener"&gt;https://communities.sas.com/t5/Statistical-Procedures/Statistics-for-comparing-a-population-with-a-subset-of-that/td-p/210627&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I don't think ANOM exists in the survey case. But&amp;nbsp; PROC SURVEYREG will produce statistical tests of the group means to the overall mean.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 11:17:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/t-test-for-dependent-samples/m-p/733683#M228608</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-04-14T11:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: t-test for dependent samples</title>
      <link>https://communities.sas.com/t5/SAS-Programming/t-test-for-dependent-samples/m-p/733686#M228609</link>
      <description>&lt;P&gt;You mean we can use PROC SURVEYREG for the test of significant for the proportion estimations of total sample vs subsample?&lt;/P&gt;&lt;P&gt;I used PROC SURVEYREG for the test of association before but not for the cases like this. Sorry, I'm not an statistician and my questions may seem basic.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 11:23:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/t-test-for-dependent-samples/m-p/733686#M228609</guid>
      <dc:creator>mandan414</dc:creator>
      <dc:date>2021-04-14T11:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: t-test for dependent samples</title>
      <link>https://communities.sas.com/t5/SAS-Programming/t-test-for-dependent-samples/m-p/733687#M228610</link>
      <description>&lt;P&gt;Yes, SURVEYREG should be able to do the statistical test you have asked for.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you add the SOLUTION option to the MODEL statement, it will compare the regression coefficient to zero ... which in this case, is statistically the same as comparing the mean of a group (province mean) to the overall mean (national mean). Here is an example (but you have to add in the SOLUTION option):&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_surveyreg_examples08.htm" target="_blank" rel="noopener"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_surveyreg_examples08.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 11:28:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/t-test-for-dependent-samples/m-p/733687#M228610</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-04-14T11:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: t-test for dependent samples</title>
      <link>https://communities.sas.com/t5/SAS-Programming/t-test-for-dependent-samples/m-p/733690#M228612</link>
      <description>&lt;P&gt;How about I want to do the comparison of proportions as well. For example the proportions of sub populations with university education vs the proportions of total population with university education. Thank you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 11:32:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/t-test-for-dependent-samples/m-p/733690#M228612</guid>
      <dc:creator>mandan414</dc:creator>
      <dc:date>2021-04-14T11:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: t-test for dependent samples</title>
      <link>https://communities.sas.com/t5/SAS-Programming/t-test-for-dependent-samples/m-p/733694#M228615</link>
      <description>&lt;P&gt;PROC SURVEYLOGISTIC&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 11:41:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/t-test-for-dependent-samples/m-p/733694#M228615</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-04-14T11:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: t-test for dependent samples</title>
      <link>https://communities.sas.com/t5/SAS-Programming/t-test-for-dependent-samples/m-p/733697#M228617</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 11:54:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/t-test-for-dependent-samples/m-p/733697#M228617</guid>
      <dc:creator>mandan414</dc:creator>
      <dc:date>2021-04-14T11:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: t-test for dependent samples</title>
      <link>https://communities.sas.com/t5/SAS-Programming/t-test-for-dependent-samples/m-p/733699#M228619</link>
      <description>&lt;P&gt;Also PROC SURVEYFREQ&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 12:21:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/t-test-for-dependent-samples/m-p/733699#M228619</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-04-14T12:21:17Z</dc:date>
    </item>
  </channel>
</rss>

