<?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: flag variables in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/flag-variables/m-p/97220#M27434</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you mean 'couldn't make it'? What was the error message? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 28 Sep 2013 19:50:28 GMT</pubDate>
    <dc:creator>plf515</dc:creator>
    <dc:date>2013-09-28T19:50:28Z</dc:date>
    <item>
      <title>flag variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/flag-variables/m-p/97217#M27431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi i am trying to estimate a logic model. However my explanotary flag variables both include 0, "." (missing values) and&amp;nbsp; i need to code missing values as "0"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because i have about 40 variables do you know an esay way yo solve this problem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Sep 2013 14:49:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/flag-variables/m-p/97217#M27431</guid>
      <dc:creator>omerzeybek</dc:creator>
      <dc:date>2013-09-28T14:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: flag variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/flag-variables/m-p/97218#M27432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure what you mean by a "logic model" (perhaps logistic?) nor am I sure what you mean by "flag variables".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Furthermore, coding missing as 0 is often a mistake.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nevertheless, if you want to do so you can do it in an array (the following code is not tested):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data new;&lt;/P&gt;&lt;P&gt; set old;&lt;/P&gt;&lt;P&gt; array misszero (*)&amp;nbsp; YOUR LIST OF VARIABLES HERE;&lt;/P&gt;&lt;P&gt;&amp;nbsp; do i = 1 to dim(misszero);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if misszero(i) = . then misszero(i) = 0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Sep 2013 15:12:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/flag-variables/m-p/97218#M27432</guid>
      <dc:creator>plf515</dc:creator>
      <dc:date>2013-09-28T15:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: flag variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/flag-variables/m-p/97219#M27433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes i was trying to build a logistic regression&lt;/P&gt;&lt;P&gt;i am&amp;nbsp; trying to implement your code to my project but unfortunately still i couldnt make it&lt;/P&gt;&lt;P&gt;however thank you very much for your interest &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Sep 2013 16:15:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/flag-variables/m-p/97219#M27433</guid>
      <dc:creator>omerzeybek</dc:creator>
      <dc:date>2013-09-28T16:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: flag variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/flag-variables/m-p/97220#M27434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you mean 'couldn't make it'? What was the error message? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Sep 2013 19:50:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/flag-variables/m-p/97220#M27434</guid>
      <dc:creator>plf515</dc:creator>
      <dc:date>2013-09-28T19:50:28Z</dc:date>
    </item>
  </channel>
</rss>

