<?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: how to proceed same analysis on hundreds of variables in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-proceed-same-analysis-on-hundreds-of-variables/m-p/494921#M130513</link>
    <description>&lt;P&gt;Transpose your DATA and use BY processing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2017/02/13/run-1000-regressions.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2017/02/13/run-1000-regressions.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/232838"&gt;@aegeangu&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I am an amateur and have no idear about&amp;nbsp;macro if it's required in this case.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It requires me to proceed same analysis on the other 599&amp;nbsp;variables in the same way as var1 (var1-var600):&lt;/P&gt;
&lt;P&gt;proc glm data = training;&lt;BR /&gt;class flag;&lt;BR /&gt;model var1.=bad_flag;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried to settle the task in this way:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;proc glm data = training;&lt;BR /&gt;class flag;&lt;BR /&gt;do i=1 to 600;&lt;BR /&gt;model var&amp;amp;i.=flag;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warnings said&lt;/P&gt;
&lt;P&gt;&amp;nbsp;apparent symbolic reference I not resolved.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;variable var not fund.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I solve it? Pls enlighten me and thank you indeed!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Sep 2018 17:02:25 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-09-12T17:02:25Z</dc:date>
    <item>
      <title>how to proceed same analysis on hundreds of variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-proceed-same-analysis-on-hundreds-of-variables/m-p/494914#M130508</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am an amateur and have no idear about&amp;nbsp;macro if it's required in this case.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It requires me to proceed same analysis on the other 599&amp;nbsp;variables in the same way as var1 (var1-var600):&lt;/P&gt;&lt;P&gt;proc glm data = training;&lt;BR /&gt;class flag;&lt;BR /&gt;model var1.=bad_flag;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to settle the task in this way:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc glm data = training;&lt;BR /&gt;class flag;&lt;BR /&gt;do i=1 to 600;&lt;BR /&gt;model var&amp;amp;i.=flag;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Warnings said&lt;/P&gt;&lt;P&gt;&amp;nbsp;apparent symbolic reference I not resolved.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;variable var not fund.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I solve it? Pls enlighten me and thank you indeed!&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 16:48:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-proceed-same-analysis-on-hundreds-of-variables/m-p/494914#M130508</guid>
      <dc:creator>aegeangu</dc:creator>
      <dc:date>2018-09-12T16:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to proceed same analysis on hundreds of variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-proceed-same-analysis-on-hundreds-of-variables/m-p/494919#M130511</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/232838"&gt;@aegeangu&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I am an amateur and have no idear about&amp;nbsp;macro if it's required in this case.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It requires me to proceed same analysis on the other 599&amp;nbsp;variables in the same way as var1 (var1-var600):&lt;/P&gt;
&lt;P&gt;proc glm data = training;&lt;BR /&gt;class flag;&lt;BR /&gt;model var1.=bad_flag;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried to settle the task in this way:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;proc glm data = training;&lt;BR /&gt;class flag;&lt;BR /&gt;do i=1 to 600;&lt;BR /&gt;model var&amp;amp;i.=flag;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warnings said&lt;/P&gt;
&lt;P&gt;&amp;nbsp;apparent symbolic reference I not resolved.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;variable var not fund.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I solve it? Pls enlighten me and thank you indeed!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You don't need a macro.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glm data = training;
    class bad_flag;
    model var1-var600=bad_flag;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;A couple of other points:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Macros should not be the first choice to do analyses on many variables. Many SAS PROCs are set up so you can easily perform the analysis on lots of variables, as shown in my code. You would only need macros if you were doing something that could need be produced by the proper SAS PROCs, or if you need to make the program dynamic (e.g. if the result of some calculation determines which of multiple paths to follow next)&lt;/LI&gt;
&lt;LI&gt;Using PROC GLM this way seems like a waste of time to me, as what are you going to do with the 600 analyses once PROC GLM finishes printing them? Better you should consider the appropriate multivariate statistical method here (for example, MANOVA)&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 12 Sep 2018 17:02:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-proceed-same-analysis-on-hundreds-of-variables/m-p/494919#M130511</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-09-12T17:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: how to proceed same analysis on hundreds of variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-proceed-same-analysis-on-hundreds-of-variables/m-p/494921#M130513</link>
      <description>&lt;P&gt;Transpose your DATA and use BY processing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2017/02/13/run-1000-regressions.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2017/02/13/run-1000-regressions.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/232838"&gt;@aegeangu&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I am an amateur and have no idear about&amp;nbsp;macro if it's required in this case.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It requires me to proceed same analysis on the other 599&amp;nbsp;variables in the same way as var1 (var1-var600):&lt;/P&gt;
&lt;P&gt;proc glm data = training;&lt;BR /&gt;class flag;&lt;BR /&gt;model var1.=bad_flag;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried to settle the task in this way:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;proc glm data = training;&lt;BR /&gt;class flag;&lt;BR /&gt;do i=1 to 600;&lt;BR /&gt;model var&amp;amp;i.=flag;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warnings said&lt;/P&gt;
&lt;P&gt;&amp;nbsp;apparent symbolic reference I not resolved.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;variable var not fund.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I solve it? Pls enlighten me and thank you indeed!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 17:02:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-proceed-same-analysis-on-hundreds-of-variables/m-p/494921#M130513</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-09-12T17:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to proceed same analysis on hundreds of variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-proceed-same-analysis-on-hundreds-of-variables/m-p/494923#M130514</link>
      <description>&lt;P&gt;Thank you very much!&amp;nbsp;&lt;/P&gt;&lt;P&gt;MANOVA is strange to me not sure whether it requires the vars obey normal distribution... I will work on it. Thank you again!&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 17:07:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-proceed-same-analysis-on-hundreds-of-variables/m-p/494923#M130514</guid>
      <dc:creator>aegeangu</dc:creator>
      <dc:date>2018-09-12T17:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: how to proceed same analysis on hundreds of variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-proceed-same-analysis-on-hundreds-of-variables/m-p/494924#M130515</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Transpose your DATA and use BY processing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2017/02/13/run-1000-regressions.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2017/02/13/run-1000-regressions.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's for hundreds/thousands of X variables. It's completely unnecessary for hundreds/thousands of Y variables.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 17:09:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-proceed-same-analysis-on-hundreds-of-variables/m-p/494924#M130515</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-09-12T17:09:44Z</dc:date>
    </item>
  </channel>
</rss>

