<?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: Estimates in proc surveyreg in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Estimates-in-proc-surveyreg/m-p/692722#M211086</link>
    <description>&lt;P&gt;The statement to get subpopulation estimates in Surveyreg is the DOMAIN statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You likely would not want the domain variable on the model statement. So if you need an overall plus the subpopulation that would be two calls to proc surveyreg, one without domain and your gender variable on the model and another with domain and gender not on the model. The Estimate statement likely won't make much sense in terms of Domain analysis though.&lt;/P&gt;</description>
    <pubDate>Fri, 23 Oct 2020 17:12:54 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2020-10-23T17:12:54Z</dc:date>
    <item>
      <title>Estimates in proc surveyreg</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Estimates-in-proc-surveyreg/m-p/692700#M211070</link>
      <description>&lt;P&gt;Hi, I am trying to find the estimates related to the effects of &amp;nbsp;gender on the relationship between two variables.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used an estimate statement in the code as follows....&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class=" block-mark"&gt;&lt;SPAN class="sec-keyword"&gt;proc&lt;/SPAN&gt; &lt;SPAN class="sec-keyword"&gt;surveyreg&lt;/SPAN&gt; &lt;SPAN class="keyword"&gt;data&lt;/SPAN&gt;&lt;SPAN class="sep"&gt;=&lt;/SPAN&gt;&lt;SPAN class="text"&gt;nhanes4 &lt;/SPAN&gt;&lt;SPAN class="keyword"&gt;order&lt;/SPAN&gt;&lt;SPAN class="sep"&gt;=&lt;/SPAN&gt;&lt;SPAN class="text"&gt;formatted&lt;/SPAN&gt;&lt;SPAN class="sep"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="keyword"&gt;cluster&lt;/SPAN&gt;&lt;SPAN class="text"&gt; SDMVPSU&lt;/SPAN&gt;&lt;SPAN class="sep"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="keyword"&gt;strata&lt;/SPAN&gt;&lt;SPAN class="text"&gt; SDMVSTRA&lt;/SPAN&gt;&lt;SPAN class="sep"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="keyword"&gt;weight&lt;/SPAN&gt;&lt;SPAN class="text"&gt; WTSH2YR&lt;/SPAN&gt;&lt;SPAN class="sep"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="keyword"&gt;class&lt;/SPAN&gt;&lt;SPAN class="text"&gt; vaper riagendr age race income cigs bmi&lt;/SPAN&gt;&lt;SPAN class="sep"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="keyword"&gt;model&lt;/SPAN&gt;&lt;SPAN class="text"&gt; loglead&lt;/SPAN&gt;&lt;SPAN class="sep"&gt;=&lt;/SPAN&gt;&lt;SPAN class="text"&gt; vaper&lt;/SPAN&gt;&lt;SPAN class="sep"&gt;|&lt;/SPAN&gt;&lt;SPAN class="text"&gt;riagendr ridageyr bmxbmI race income cigs&lt;/SPAN&gt;&lt;SPAN class="sep"&gt;/&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="keyword"&gt;solution&lt;/SPAN&gt; &lt;SPAN class="keyword"&gt;clparm&lt;/SPAN&gt;&lt;SPAN class="sep"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="keyword"&gt;format&lt;/SPAN&gt;&lt;SPAN class="text"&gt; vaper &lt;/SPAN&gt;&lt;SPAN class="format"&gt;vaperf.&lt;/SPAN&gt;&lt;SPAN class="text"&gt; riagendr &lt;/SPAN&gt;&lt;SPAN class="format"&gt;genderf.&lt;/SPAN&gt;&lt;SPAN class="text"&gt; race &lt;/SPAN&gt;&lt;SPAN class="format"&gt;racef.&lt;/SPAN&gt;&lt;SPAN class="text"&gt; income&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="format"&gt;incomef.&lt;/SPAN&gt;&lt;SPAN class="text"&gt; cigs &lt;/SPAN&gt;&lt;SPAN class="format"&gt;cigsf.&lt;/SPAN&gt; &lt;SPAN class="sep"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="keyword"&gt;estimate&lt;/SPAN&gt; &lt;SPAN class="string"&gt;'comparing males and females'&lt;/SPAN&gt;&lt;SPAN class="text"&gt; riagendr &lt;/SPAN&gt;&lt;SPAN class="sep"&gt;-&lt;/SPAN&gt;&lt;SPAN class="numeric"&gt;1&lt;/SPAN&gt; &lt;SPAN class="numeric"&gt;1&lt;/SPAN&gt;&lt;SPAN class="sep"&gt;/&lt;/SPAN&gt;&lt;SPAN class="keyword"&gt;exp&lt;/SPAN&gt;&lt;SPAN class="sep"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="keyword"&gt;title&lt;/SPAN&gt; &lt;SPAN class="string"&gt;"Model with Gender Interaction Term"&lt;/SPAN&gt;&lt;SPAN class="sep"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="sec-keyword"&gt;run&lt;/SPAN&gt;&lt;SPAN class="sep"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="sep"&gt;somehow, I am not able to get the estimates for males and the estimates for females. Rather, it gives me a single estimate with male as the reference. Is there another way I can code this to give me two separate estimates, one each for male and females?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="sep"&gt;thanks&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 19 Oct 2020 20:47:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Estimates-in-proc-surveyreg/m-p/692700#M211070</guid>
      <dc:creator>kukie</dc:creator>
      <dc:date>2020-10-19T20:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: Estimates in proc surveyreg</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Estimates-in-proc-surveyreg/m-p/692722#M211086</link>
      <description>&lt;P&gt;The statement to get subpopulation estimates in Surveyreg is the DOMAIN statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You likely would not want the domain variable on the model statement. So if you need an overall plus the subpopulation that would be two calls to proc surveyreg, one without domain and your gender variable on the model and another with domain and gender not on the model. The Estimate statement likely won't make much sense in terms of Domain analysis though.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Oct 2020 17:12:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Estimates-in-proc-surveyreg/m-p/692722#M211086</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-10-23T17:12:54Z</dc:date>
    </item>
  </channel>
</rss>

