<?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: SAS macro for multiple linear regression in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-macro-for-multiple-linear-regression/m-p/87459#M18706</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PROC GLM can handle all of the outcomes in a single pass, plus it is one of the multithreaded procs, so if you have multiple CPUs available, it can really speed some of the computations.&amp;nbsp; You could try::&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc glm data=yourdata;&lt;/P&gt;&lt;P&gt;class gender edulevel;&lt;/P&gt;&lt;P&gt;model sbp dbp rasbp lasbp &amp;lt;put as many here as you have&amp;gt;=gender edulevel gender*edulevel age bmi;&lt;/P&gt;&lt;P&gt;&amp;lt;insert other stuff here to get lsmeans, etc.&amp;gt;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us know if this needs more attention.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jun 2012 12:09:20 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2012-06-20T12:09:20Z</dc:date>
    <item>
      <title>SAS macro for multiple linear regression</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-macro-for-multiple-linear-regression/m-p/87458#M18705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,I was wondering if there is a faster way to do multiple linear regression for multiple outcomes?Even though I can use proc glm for each multiple linear regression (there are about 30 some outcomes, that we will be looking into), it is quite tedious to do so...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example outcomes: SBP, DBP, PP, RASBP, LASBP etc...&lt;/P&gt;&lt;P&gt;independent variables: age, bmi, gender(0, 1), edulevel(1, 2, 3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;outcomes, age, bmi are continuous variablesgender, education levels are categorical&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2012 02:40:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-macro-for-multiple-linear-regression/m-p/87458#M18705</guid>
      <dc:creator>Chi</dc:creator>
      <dc:date>2012-06-20T02:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: SAS macro for multiple linear regression</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-macro-for-multiple-linear-regression/m-p/87459#M18706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PROC GLM can handle all of the outcomes in a single pass, plus it is one of the multithreaded procs, so if you have multiple CPUs available, it can really speed some of the computations.&amp;nbsp; You could try::&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc glm data=yourdata;&lt;/P&gt;&lt;P&gt;class gender edulevel;&lt;/P&gt;&lt;P&gt;model sbp dbp rasbp lasbp &amp;lt;put as many here as you have&amp;gt;=gender edulevel gender*edulevel age bmi;&lt;/P&gt;&lt;P&gt;&amp;lt;insert other stuff here to get lsmeans, etc.&amp;gt;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us know if this needs more attention.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2012 12:09:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-macro-for-multiple-linear-regression/m-p/87459#M18706</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2012-06-20T12:09:20Z</dc:date>
    </item>
  </channel>
</rss>

