<?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 New Variable in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Creating-New-Variable/m-p/174476#M13383</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you shouldn't need the length statement, and I am still concerned that you consider the number of hours missed to be "ordinal".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are the values of Q54 and Q55 and Q56 actual numbers, as in SAS variables that are numeric?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Apr 2014 14:03:34 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2014-04-10T14:03:34Z</dc:date>
    <item>
      <title>Creating New Variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Creating-New-Variable/m-p/174470#M13377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to create a new variable (health) using 3 variables which are already in the dataset (q1 q2 and q3). The three variables I am creating this new variable from all have the same ordinal response options. (How long in hours have you missed work, due two three separate conditions) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After creating this new variable(health) from the 3 variables,&amp;nbsp; I would like to get its mean, SD, CI.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance for any advice you may have!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2014 18:23:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Creating-New-Variable/m-p/174470#M13377</guid>
      <dc:creator>GregBond</dc:creator>
      <dc:date>2014-04-09T18:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: Creating New Variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Creating-New-Variable/m-p/174471#M13378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Number hours of missed work seems like it is numeric, not ordinal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, we cannot tell you how to combine the 3 variables, this is your problem, and so you have to decide how to combine them, and then we might be able to advise on how to code it in SAS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2014 18:37:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Creating-New-Variable/m-p/174471#M13378</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2014-04-09T18:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: Creating New Variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Creating-New-Variable/m-p/174472#M13379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response Paige!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Combining the variables through addition, e.g. health = Q54+Q55+Q56.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, I would like to get the mean, SD, and CI of the 'health' variable sum. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2014 18:40:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Creating-New-Variable/m-p/174472#M13379</guid>
      <dc:creator>GregBond</dc:creator>
      <dc:date>2014-04-09T18:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: Creating New Variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Creating-New-Variable/m-p/174473#M13380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;proc means data=have n mean std ;&lt;/P&gt;&lt;P&gt;var health;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2014 19:02:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Creating-New-Variable/m-p/174473#M13380</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-04-09T19:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: Creating New Variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Creating-New-Variable/m-p/174474#M13381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for your response again, when running this code... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data work.CAREGIVER;&lt;/P&gt;&lt;P&gt;set work.caregiver;&lt;/P&gt;&lt;P&gt;length health $44;&lt;/P&gt;&lt;P&gt;keep health ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;health = Q54+Q55+Q56;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc means data=work.CAREGIVER n mean std;&lt;/P&gt;&lt;P&gt;var health ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the following error... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp; proc means data=work.CAREGIVER_SPSS n mean std;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;var house;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR: Variable house in list does not match type prescribed for this list.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2014 19:10:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Creating-New-Variable/m-p/174474#M13381</guid>
      <dc:creator>GregBond</dc:creator>
      <dc:date>2014-04-09T19:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: Creating New Variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Creating-New-Variable/m-p/174475#M13382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's because you've created a character variable above, not a numeric variable.&amp;nbsp; Why do you have the length statement?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2014 19:13:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Creating-New-Variable/m-p/174475#M13382</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-04-09T19:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: Creating New Variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Creating-New-Variable/m-p/174476#M13383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you shouldn't need the length statement, and I am still concerned that you consider the number of hours missed to be "ordinal".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are the values of Q54 and Q55 and Q56 actual numbers, as in SAS variables that are numeric?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2014 14:03:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Creating-New-Variable/m-p/174476#M13383</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2014-04-10T14:03:34Z</dc:date>
    </item>
  </channel>
</rss>

