<?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: Code removing parameters in surveylogistic but not surveyfreq in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Code-removing-parameters-in-surveylogistic-but-not-surveyfreq/m-p/842315#M41751</link>
    <description>&lt;P&gt;Very likely there are missing values in some of the other variables that causes observations from the other SmokeLoc levels to be dropped from the analysis.&amp;nbsp; You should run Crosstabs between SmokeLoc and the other variables individually to see which variables are causing the issue.&amp;nbsp; You might then consider not using that variable(s) in the model or treating missing as a valid category.&lt;/P&gt;</description>
    <pubDate>Thu, 03 Nov 2022 13:53:49 GMT</pubDate>
    <dc:creator>SAS_Rob</dc:creator>
    <dc:date>2022-11-03T13:53:49Z</dc:date>
    <item>
      <title>Code removing parameters in surveylogistic but not surveyfreq</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Code-removing-parameters-in-surveylogistic-but-not-surveyfreq/m-p/842222#M41749</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Sorry if this question isn't worded correctly or I missed an already solved thread, I feel like I did my due diligence looking but I turned up blanks. I am running a multinomial logistic regression and I haven't had any issues with the model or handling of variables until I hit this specific item. I am using a secondary data set where an item asks where is the main place someone works with different responses of indoors, outdoors, indoors and outdoors, etc. Here is a subsection of the code where I am regrouping another variable into the one I plan on using.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;	If pek1a=1 or pek1a=4 Then Smokeloc=1;				/* Indoors */
	If pek1a=2 Then Smokeloc=2;							/* Outdoors */
	If pek1a=3 Then Smokeloc=3;							/* Equally Indoors and Outdoors */
	If pek1a=5 or pek1a=6 Then Smokeloc=4;				/* Travel or Varies */
	Else If pek1a&amp;lt;=0 Then Delete;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run my survey logistic it shows all of my variable parameters.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc surveyfreq data=tus1819 Varmethod=BRR (Fay=0.5);
Tables ATSMCARC / cl;
Tables (&lt;FONT color="#FF6600"&gt;&lt;U&gt;&lt;STRONG&gt;&lt;EM&gt;other variables here&lt;/EM&gt;&lt;/STRONG&gt;&lt;/U&gt;&lt;/FONT&gt; Smokeloc)*ATSMCARC / cl row;
Weight PWSRWgt;
Repweights RepWgt001-RepWgt160;
Run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This all works fine and shows all of my items for specifically smokeloc.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="All parameters" style="width: 516px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/76891iF3E75C855D67E8F4/image-size/large?v=v2&amp;amp;px=999" role="button" title="smokeloc example 1.png" alt="All parameters" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;All parameters&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the regression below doesn't run them all and drops most of them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc Surveylogistic data=tus1819 VarMethod=brr (Fay=0.5);
Class &lt;FONT color="#FF6600"&gt;&lt;EM&gt;&lt;U&gt;&lt;STRONG&gt;other variables here&lt;/STRONG&gt;&lt;/U&gt;&lt;/EM&gt;&lt;/FONT&gt; Smokeloc(ref='Indoors') / Param=Ref;
Model ATSMCARC = &lt;FONT color="#FF6600"&gt;&lt;EM&gt;&lt;U&gt;&lt;STRONG&gt;other variables here&lt;/STRONG&gt;&lt;/U&gt;&lt;/EM&gt;&lt;/FONT&gt; Smokeloc / link = glogit;
Weight PWSRWgt;
Repweights RepWgt001-RepWgt160;
Run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;And then I end up with this where only two of them are left.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Missing parameters" style="width: 504px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/76892iDC0D57C8C293BA8F/image-size/large?v=v2&amp;amp;px=999" role="button" title="smokeloc example 2.png" alt="Missing parameters" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Missing parameters&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have no idea what is going on because I've done this exact process with all of my other variables with no issues. Does anyone have an idea what I am doing wrong or what I should be looking for? I don't see any issues popping up in the log either when it is run.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 22:37:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Code-removing-parameters-in-surveylogistic-but-not-surveyfreq/m-p/842222#M41749</guid>
      <dc:creator>chrisdunlap</dc:creator>
      <dc:date>2022-11-02T22:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: Code removing parameters in surveylogistic but not surveyfreq</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Code-removing-parameters-in-surveylogistic-but-not-surveyfreq/m-p/842315#M41751</link>
      <description>&lt;P&gt;Very likely there are missing values in some of the other variables that causes observations from the other SmokeLoc levels to be dropped from the analysis.&amp;nbsp; You should run Crosstabs between SmokeLoc and the other variables individually to see which variables are causing the issue.&amp;nbsp; You might then consider not using that variable(s) in the model or treating missing as a valid category.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 13:53:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Code-removing-parameters-in-surveylogistic-but-not-surveyfreq/m-p/842315#M41751</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2022-11-03T13:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Code removing parameters in surveylogistic but not surveyfreq</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Code-removing-parameters-in-surveylogistic-but-not-surveyfreq/m-p/842324#M41752</link>
      <description>&lt;P&gt;To add to &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/155173"&gt;@SAS_Rob&lt;/a&gt; , I like to use the options LIST and MISSING in a tables statement in Proc Freq when more than 2 variables are involved as the output is easier to read and is pretty clear about where the "missing" are impacting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dummy code as an example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc freq data=yourdata;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; tables var1 * var2 * othervar / list missing;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This would be recommended for Class or categorical variables.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 14:14:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Code-removing-parameters-in-surveylogistic-but-not-surveyfreq/m-p/842324#M41752</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-11-03T14:14:18Z</dc:date>
    </item>
  </channel>
</rss>

