<?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: Setting reference levels with proc surveylogistic in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Setting-reference-levels-with-proc-surveylogistic/m-p/765087#M10156</link>
    <description>&lt;P&gt;First thing: best practice is to copy/paste text from log into a text box opened on the forum using the &amp;lt;/&amp;gt; icon at the top of the message window. This will preserve the text as created. The message windows on this forum will reformat text, such as moving the locations of the diagnostic characters like the underscores that appear under the place SAS determined an error occurs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Second:&lt;/P&gt;
&lt;P&gt;Look very closely at your posted code:&lt;/P&gt;
&lt;DIV class="sasSource"&gt;106 class d_age_cat2(ref=&lt;FONT size="5" color="#FF0000"&gt;&lt;STRONG&gt;”&lt;/STRONG&gt;&lt;/FONT&gt;0&lt;FONT size="5" color="#FF0000"&gt;&lt;STRONG&gt;”&lt;/STRONG&gt;&lt;/FONT&gt;) d_gender (ref=”MALE”) d_race (ref=”NH White”) d_politics(ref=”DEM“)&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;_______ __________ _____ _________&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;This is the typical programming double quote character: &lt;FONT size="5"&gt;&lt;STRONG&gt;"&lt;/STRONG&gt; &lt;/FONT&gt;The quotes you are using are the "smart quotes" that use curly tails and are not recognized as a valid quote for programming in SAS. Change them. Everywhere.&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;Likely sources of non-programming quotes are if you copied code from a word processor or web page, or used a word processor to create a code file.&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;I didn't check to see if had bad single quotes but they can occur as well.&lt;/DIV&gt;</description>
    <pubDate>Tue, 31 Aug 2021 15:32:59 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2021-08-31T15:32:59Z</dc:date>
    <item>
      <title>Setting reference levels with proc surveylogistic</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Setting-reference-levels-with-proc-surveylogistic/m-p/764959#M10150</link>
      <description>&lt;P&gt;Hi all. Running logistic regression with proc surveylogistic and I'm having trouble setting my references for the different variables. This is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc surveylogistic data=masks1;&lt;BR /&gt;weight wt_multi;&lt;BR /&gt;class d_age_cat2(ref=”0”) d_gender (ref=”MALE”) d_race (ref=”NH White”) d_politics(ref=”DEM“) d_religion2(ref=”NOTHING”) vaxxed(ref=”0”);&lt;BR /&gt;model b2_m_always (descending) = age gender race politics religion vaxxed;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And the error message I'm getting:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="sasSource"&gt;103&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;104 proc surveylogistic data=masks1;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;105 weight wt_multi;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;106 class d_age_cat2(ref=”0”) d_gender (ref=”MALE”) d_race (ref=”NH White”) d_politics(ref=”DEM“)&lt;/DIV&gt;&lt;DIV class="sasError"&gt;_______ __________ _____ _________&lt;/DIV&gt;&lt;DIV class="sasError"&gt;_____________&lt;/DIV&gt;&lt;DIV class="sasError"&gt;22 22 22 22&lt;/DIV&gt;&lt;DIV class="sasError"&gt;22&lt;/DIV&gt;&lt;DIV class="sasError"&gt;202 202 202 202&lt;/DIV&gt;&lt;DIV class="sasError"&gt;202&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;106 ! d_religion2(ref=”NOTHING”) vaxxed(ref=”0”);&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;106 class d_age_cat2(ref=”0”) d_gender (ref=”MALE”) d_race (ref=”NH White”) d_politics(ref=”DEM“)&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;106 ! d_religion2(ref=”NOTHING”) vaxxed(ref=”0”);&lt;/DIV&gt;&lt;DIV class="sasError"&gt;_______&lt;/DIV&gt;&lt;DIV class="sasError"&gt;22&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 22-322: Syntax error, expecting one of the following: a quoted string, FIRST, LAST.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 202-322: The option or parameter is not recognized and will be ignored.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;106 class d_age_cat2(ref=”0”) d_gender (ref=”MALE”) d_race (ref=”NH White”) d_politics(ref=”DEM“)&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;106 ! d_religion2(ref=”NOTHING”) vaxxed(ref=”0”);&lt;/DIV&gt;&lt;DIV class="sasError"&gt;_______&lt;/DIV&gt;&lt;DIV class="sasError"&gt;202&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 202-322: The option or parameter is not recognized and will be ignored.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: PROCEDURE SURVEYLOGISTIC used (Total process time):&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;real time 0.00 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;user cpu time 0.00 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;system cpu time 0.01 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;memory 1830.65k&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;OS Memory 28324.00k&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Timestamp 08/30/2021 11:42:09 PM&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Step Count 63 Switch Count 0&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Page Faults 0&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Page Reclaims 243&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Page Swaps 0&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Voluntary Context Switches 0&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Involuntary Context Switches 0&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Block Input Operations 0&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Block Output Operations 0&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;107 model b2_m_always (descending) = age gender race politics religion vaxxed;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;108 run;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;109&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;110&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;111 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;121&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;Any help is much appreciated. Proc surveylogistic has really been messing with me......anyways. Thanks in advance.&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Mon, 30 Aug 2021 23:43:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Setting-reference-levels-with-proc-surveylogistic/m-p/764959#M10150</guid>
      <dc:creator>joachimg</dc:creator>
      <dc:date>2021-08-30T23:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: Setting reference levels with proc surveylogistic</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Setting-reference-levels-with-proc-surveylogistic/m-p/765087#M10156</link>
      <description>&lt;P&gt;First thing: best practice is to copy/paste text from log into a text box opened on the forum using the &amp;lt;/&amp;gt; icon at the top of the message window. This will preserve the text as created. The message windows on this forum will reformat text, such as moving the locations of the diagnostic characters like the underscores that appear under the place SAS determined an error occurs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Second:&lt;/P&gt;
&lt;P&gt;Look very closely at your posted code:&lt;/P&gt;
&lt;DIV class="sasSource"&gt;106 class d_age_cat2(ref=&lt;FONT size="5" color="#FF0000"&gt;&lt;STRONG&gt;”&lt;/STRONG&gt;&lt;/FONT&gt;0&lt;FONT size="5" color="#FF0000"&gt;&lt;STRONG&gt;”&lt;/STRONG&gt;&lt;/FONT&gt;) d_gender (ref=”MALE”) d_race (ref=”NH White”) d_politics(ref=”DEM“)&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;_______ __________ _____ _________&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;This is the typical programming double quote character: &lt;FONT size="5"&gt;&lt;STRONG&gt;"&lt;/STRONG&gt; &lt;/FONT&gt;The quotes you are using are the "smart quotes" that use curly tails and are not recognized as a valid quote for programming in SAS. Change them. Everywhere.&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;Likely sources of non-programming quotes are if you copied code from a word processor or web page, or used a word processor to create a code file.&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;I didn't check to see if had bad single quotes but they can occur as well.&lt;/DIV&gt;</description>
      <pubDate>Tue, 31 Aug 2021 15:32:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Setting-reference-levels-with-proc-surveylogistic/m-p/765087#M10156</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-08-31T15:32:59Z</dc:date>
    </item>
  </channel>
</rss>

