<?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: Help with this code proc surveylogistic code in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Help-with-this-code-proc-surveylogistic-code/m-p/952899#M47684</link>
    <description>&lt;P&gt;Thanks alot for this&lt;/P&gt;</description>
    <pubDate>Sun, 08 Dec 2024 17:21:12 GMT</pubDate>
    <dc:creator>Michelle_AD</dc:creator>
    <dc:date>2024-12-08T17:21:12Z</dc:date>
    <item>
      <title>Help with this code proc surveylogistic code</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-with-this-code-proc-surveylogistic-code/m-p/952877#M47682</link>
      <description>&lt;P&gt;everyone I am new here and I need some help. I keep encountering this error:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; proc surveylogistic data=nhis29;
 cluster ppsu;
 strata pstrat;
 weight wtfa;
 class SRVY_YR(ref='2021') edu(ref='1') pov(ref='1') sex(ref='1')/param=ref;
 model ft=srvy_yr edu pov sex/expb;
 run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;ERROR: Invalid reference value for SRVY_YR.&lt;/P&gt;&lt;P&gt;Yet for the same variable and reference everything seems fine as shown below:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; proc surveylogistic data=nhis29;
 cluster ppsu;
 strata pstrat;
 weight wtfa;
 class SRVY_YR(ref='2021')/param=ref;
 model ft(event='1')=srvy_yr/expb;
 run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;NOTE: PROC SURVEYLOGISTIC is modeling the probability that ft=1. NOTE: Convergence criterion (GCONV=1E-8) satisfied. NOTE: PROCEDURE SURVEYLOGISTIC used (Total process time): real time 0.20 seconds cpu time 0.11 seconds&lt;/P&gt;&lt;P&gt;I can't think of what I missed, and any assistance would be appreciated&lt;/P&gt;&lt;P&gt;I tried proc surveyfreq and 2021 is a category and works fine&lt;/P&gt;</description>
      <pubDate>Sun, 08 Dec 2024 05:39:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-with-this-code-proc-surveylogistic-code/m-p/952877#M47682</guid>
      <dc:creator>Michelle_AD</dc:creator>
      <dc:date>2024-12-08T05:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: Help with this code proc surveylogistic code</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-with-this-code-proc-surveylogistic-code/m-p/952882#M47683</link>
      <description>&lt;P&gt;Your 2nd model (where the reference level '2021' is accepted) is a lot more&amp;nbsp;&lt;SPAN&gt;parsimonious&amp;nbsp;/&amp;nbsp;succinct than the 1st model. The 1st one has many more Independent Variables (IV's).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;By including extra IV's you risk that more observations are banned from the analysis because of missing values. Check the number of observations used in the 1st surveylogistic and&amp;nbsp;check the number of observations used in the 2nd surveylogistic, I bet the 2nd number is much higher.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Among all complete-case observations remaining in the first surveylogistic, there are -- in my opinion -- none left that still contain ‘2021’ for that SRVY_YR Cl&lt;/SPAN&gt;&lt;SPAN&gt;ass variable. Please check !&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;H2&gt;&lt;FONT size="4"&gt;Usage Note&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;I&gt;37108:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/I&gt;Setting reference levels for CLASS predictor variables&lt;BR /&gt;&lt;A href="https://support.sas.com/kb/37/108.html" target="_blank"&gt;https://support.sas.com/kb/37/108.html&lt;/A&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/H2&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Good luck with your analysis.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Sun, 08 Dec 2024 10:37:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-with-this-code-proc-surveylogistic-code/m-p/952882#M47683</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2024-12-08T10:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: Help with this code proc surveylogistic code</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-with-this-code-proc-surveylogistic-code/m-p/952899#M47684</link>
      <description>&lt;P&gt;Thanks alot for this&lt;/P&gt;</description>
      <pubDate>Sun, 08 Dec 2024 17:21:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-with-this-code-proc-surveylogistic-code/m-p/952899#M47684</guid>
      <dc:creator>Michelle_AD</dc:creator>
      <dc:date>2024-12-08T17:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: Help with this code proc surveylogistic code</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-with-this-code-proc-surveylogistic-code/m-p/952918#M47688</link>
      <description>&lt;P&gt;You can examine &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/60547"&gt;@sbxkoenk&lt;/a&gt; suggestion of possible problems with the multiple independent variables using code like this in Proc Freq:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Proc freq data=nhis29;
   tables srvy_yr * edu * pov * sex / list missing;
run;&lt;/PRE&gt;
&lt;P&gt;If ALL of the Srvy_yr=2021 have missing values for one or more of the other variables it will appear pretty easily.&lt;/P&gt;
&lt;P&gt;What the LIST option is does is place all the values on one line so is relatively easy to read and the Missing option means they appear in the body of the table so you can find how many and with which variables they appear. Probably not as useful with multiple continuous variable but your variables look like this shouldn't be to long of a result.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2024 03:25:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-with-this-code-proc-surveylogistic-code/m-p/952918#M47688</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-12-09T03:25:53Z</dc:date>
    </item>
  </channel>
</rss>

