<?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: Creating variable with multiple values in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Creating-variable-with-multiple-values/m-p/396534#M66529</link>
    <description>&lt;P&gt;Okay...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached is a screenshot of the variables I have for my first 4 observations. I have 2 variables (numbermale and numberfemale) that I somehow want to combine into one variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The overall purpose of doing this is to create a variable that can be used for logistic regression. Sex is one of my predictor variables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I approaching this wrong? Is there another option for running logistic regression with these variables?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Kelly867&lt;/P&gt;</description>
    <pubDate>Sat, 16 Sep 2017 02:55:24 GMT</pubDate>
    <dc:creator>kelly867</dc:creator>
    <dc:date>2017-09-16T02:55:24Z</dc:date>
    <item>
      <title>Creating variable with multiple values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Creating-variable-with-multiple-values/m-p/396529#M66527</link>
      <description>&lt;P&gt;Hey guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need help creating a variable for sex. My data set currently has variables called "male" and "female, which have a numeric value for each observation. However, I am trying to create one variable for each observation called "sex", which should indicate the number of male and female participants in each observation. Is this possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kelly867&lt;/P&gt;</description>
      <pubDate>Sat, 16 Sep 2017 02:21:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Creating-variable-with-multiple-values/m-p/396529#M66527</guid>
      <dc:creator>kelly867</dc:creator>
      <dc:date>2017-09-16T02:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: Creating variable with multiple values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Creating-variable-with-multiple-values/m-p/396531#M66528</link>
      <description>&lt;P&gt;Anythings possible with enough time, money and people.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For your problem you need to provide more details. A good way would be with sample data.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Sep 2017 02:42:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Creating-variable-with-multiple-values/m-p/396531#M66528</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-09-16T02:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: Creating variable with multiple values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Creating-variable-with-multiple-values/m-p/396534#M66529</link>
      <description>&lt;P&gt;Okay...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached is a screenshot of the variables I have for my first 4 observations. I have 2 variables (numbermale and numberfemale) that I somehow want to combine into one variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The overall purpose of doing this is to create a variable that can be used for logistic regression. Sex is one of my predictor variables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I approaching this wrong? Is there another option for running logistic regression with these variables?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Kelly867&lt;/P&gt;</description>
      <pubDate>Sat, 16 Sep 2017 02:55:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Creating-variable-with-multiple-values/m-p/396534#M66529</guid>
      <dc:creator>kelly867</dc:creator>
      <dc:date>2017-09-16T02:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: Creating variable with multiple values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Creating-variable-with-multiple-values/m-p/396536#M66530</link>
      <description>&lt;P&gt;This isn't making sense to me. You typically do logistic regression with individual level data. If this isn't individual level data then I don't know how you'd combine this to make any sort of sense...in that case, leaving it as is seems to make the most amount of sense. You can't combine it to a single person and then use all three variables, you could combine it and use that vairable alone, and not use the gendered breakdown.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;What are you expecting as output from combining these variables?&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that we can't provide code based on images, and I'm not typing out your data for an example AND code that answers it. Please provide data samples as text.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Sep 2017 03:02:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Creating-variable-with-multiple-values/m-p/396536#M66530</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-09-16T03:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: Creating variable with multiple values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Creating-variable-with-multiple-values/m-p/396537#M66531</link>
      <description>&lt;P&gt;Ths is how to do ths:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
set have;
if numberFemale &amp;gt; 0 then do;
	sex = "Female";
	number = numberFemale;
	output;
	end;
if numberMale &amp;gt; 0 then do;
	sex = "Male";
	number = numberMale;
	output;
	end;
drop numbermale numberfemale;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 16 Sep 2017 03:03:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Creating-variable-with-multiple-values/m-p/396537#M66531</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2017-09-16T03:03:52Z</dc:date>
    </item>
  </channel>
</rss>

