<?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 surveyreg - how to compare the differences in means for groupings in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-surveyreg-how-to-compare-the-differences-in-means-for/m-p/276003#M14561</link>
    <description>&lt;P&gt;Why did you start with Surveyreg (other than you likely had a complex sample)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Jun 2016 15:31:17 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2016-06-08T15:31:17Z</dc:date>
    <item>
      <title>Proc surveyreg - how to compare the differences in means for groupings</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-surveyreg-how-to-compare-the-differences-in-means-for/m-p/275873#M14548</link>
      <description>&lt;P&gt;I am trying to compare the % of adults who are uninsured with hypertension in 2013 vs. 2014 for democratic states and similarly for republican&amp;nbsp;states. &amp;nbsp;See table below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Hypertension&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Democratic States&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Democratic States&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Republican States&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Republican States&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;2013&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;2014&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;2013&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;2014&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;12.4%&lt;/TD&gt;&lt;TD&gt;10.0%&lt;/TD&gt;&lt;TD&gt;18.7%&lt;/TD&gt;&lt;TD&gt;14.0%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For this, I used the proc surveyreg procedure to get at the means and compare them to see if they were statistically significant. &amp;nbsp;However, what I really want to do is compare the difference in means&amp;nbsp;between&amp;nbsp;2013 and 2014 for democratic states compared to republican&amp;nbsp;states to see if its statistically significant.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So using the example data above, is a 2 percentage point difference for democratic states statistically different from the 4% percentage point difference for republican states. &amp;nbsp;Does anyone know how I can calculate that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc surveyreg data=one; 
strata strat_p; 
cluster psu_p; 
class srvy_yr dem_or_repub; 
model hypertension = srvy_yr*dem_or_repub/ vadjust=none; 
lsmeans srvy_yr dem_or_repub srvy_yr*dem_or_repub / diff; 
weight wtfa_sa; 
run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2016 06:28:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-surveyreg-how-to-compare-the-differences-in-means-for/m-p/275873#M14548</guid>
      <dc:creator>einstein</dc:creator>
      <dc:date>2016-06-08T06:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: Proc surveyreg - how to compare the differences in means for groupings</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-surveyreg-how-to-compare-the-differences-in-means-for/m-p/276003#M14561</link>
      <description>&lt;P&gt;Why did you start with Surveyreg (other than you likely had a complex sample)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2016 15:31:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-surveyreg-how-to-compare-the-differences-in-means-for/m-p/276003#M14561</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-06-08T15:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: Proc surveyreg - how to compare the differences in means for groupings</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-surveyreg-how-to-compare-the-differences-in-means-for/m-p/276025#M14564</link>
      <description>&lt;P&gt;Yes, that's correct its a complex survey design.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2016 16:49:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-surveyreg-how-to-compare-the-differences-in-means-for/m-p/276025#M14564</guid>
      <dc:creator>einstein</dc:creator>
      <dc:date>2016-06-08T16:49:13Z</dc:date>
    </item>
  </channel>
</rss>

