<?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 Macro Problem... in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Macro-Problem/m-p/100684#M21078</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Evening All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the past thee hours I have been working on a problem that I just can not seem to understand. With no dataset or really any information (such as X and Y values) I am at a loss.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Write a macro to fit a multiple regression model where Y is identified as one macro variable, and each X is identified as another macro variable.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is more to the problem, but once I understand that I feel I can complete the rest.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;So far I have been thinking;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;% macro exercise(x, y);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;%let x = value 1;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;%let y = value 2;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;The second part of the problem is:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;Your macro should do the following:&lt;BR /&gt; a. Fit the model.&lt;BR /&gt; b. Plot the residuals versus each X.&lt;BR /&gt; c. Plot the residuals versus Y.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;So from here I'm thinking:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;%let x = value 1;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;%let y = value 2;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;% macro exercise(x, y, proc sgplot data = abc, scatter x=y, y=residual_q);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;But I am completely off base here I feel and have no idea what to do.&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 15 Dec 2012 00:16:52 GMT</pubDate>
    <dc:creator>Dart246</dc:creator>
    <dc:date>2012-12-15T00:16:52Z</dc:date>
    <item>
      <title>Macro Problem...</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Problem/m-p/100684#M21078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Evening All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the past thee hours I have been working on a problem that I just can not seem to understand. With no dataset or really any information (such as X and Y values) I am at a loss.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Write a macro to fit a multiple regression model where Y is identified as one macro variable, and each X is identified as another macro variable.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is more to the problem, but once I understand that I feel I can complete the rest.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;So far I have been thinking;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;% macro exercise(x, y);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;%let x = value 1;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;%let y = value 2;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;The second part of the problem is:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;Your macro should do the following:&lt;BR /&gt; a. Fit the model.&lt;BR /&gt; b. Plot the residuals versus each X.&lt;BR /&gt; c. Plot the residuals versus Y.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;So from here I'm thinking:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;%let x = value 1;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;%let y = value 2;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;% macro exercise(x, y, proc sgplot data = abc, scatter x=y, y=residual_q);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;But I am completely off base here I feel and have no idea what to do.&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Dec 2012 00:16:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Problem/m-p/100684#M21078</guid>
      <dc:creator>Dart246</dc:creator>
      <dc:date>2012-12-15T00:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Problem...</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Problem/m-p/100685#M21079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are a bit off base, but it also sounds like homework.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See here for some pointers.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://www.ats.ucla.edu/stat/sas/seminars/sas_macros_introduction/default.htm" title="http://www.ats.ucla.edu/stat/sas/seminars/sas_macros_introduction/default.htm"&gt;http://www.ats.ucla.edu/stat/sas/seminars/sas_macros_introduction/default.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Dec 2012 04:26:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Problem/m-p/100685#M21079</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2012-12-15T04:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Problem...</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Problem/m-p/100686#M21080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems to me that you first need to understand how to perform the requested analysis and produce the proper outputs.&amp;nbsp; Then you can worry about how to convert it so that it is "macrotized".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Dec 2012 04:40:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Problem/m-p/100686#M21080</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2012-12-15T04:40:18Z</dc:date>
    </item>
  </channel>
</rss>

