<?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: Can you automate substitution of dependant variable in the model statement? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Can-you-automate-substitution-of-dependant-variable-in-the-model/m-p/30487#M7251</link>
    <description>Hi:&lt;BR /&gt;
  Anytime you talk about "automating" SAS code, you get, eventually, to advice about using the SAS Macro Facility. For a good overview of the SAS macro facility, this is an excellent place to start:&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi28/056-28.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi28/056-28.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
  When you talk about generating a LIST of variable names, to be used in the automation process, you will get, eventually, to advice about using the SAS Dictionary Tables or the SASHELP.Vxxxxx tables.&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi26/p017-26.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi26/p017-26.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi31/259-31.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi31/259-31.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi29/237-29.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi29/237-29.pdf&lt;/A&gt; (specifically Example 5)&lt;BR /&gt;
 &lt;BR /&gt;
This reading should get you pointed in the right direction. There have also been a lot of previous forum postings on the use of the DICTIONARY tables and on macro processing like this.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
    <pubDate>Wed, 02 Jun 2010 15:41:45 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2010-06-02T15:41:45Z</dc:date>
    <item>
      <title>Can you automate substitution of dependant variable in the model statement?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Can-you-automate-substitution-of-dependant-variable-in-the-model/m-p/30486#M7250</link>
      <description>Hi all. I'm trying to find a way to speed up SAS analysis by minimizing the amount of manual labour.&lt;BR /&gt;
&lt;BR /&gt;
Let's say you have a very simple code like below:&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
proc mixed data = mydata;&lt;BR /&gt;
   class stand_type;&lt;BR /&gt;
   model total_mg = stand_type;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
I'm trying to find a way to automatically substitute "total_mg" in the model statement with other variables (e.g., total_c,  total_n,  total_k etc.) found in the same dataset so that I only have to execute the program once, and all the variables in MYDATA is analysed by the proc mixed model provided.&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance for your help!</description>
      <pubDate>Wed, 02 Jun 2010 15:25:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Can-you-automate-substitution-of-dependant-variable-in-the-model/m-p/30486#M7250</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-06-02T15:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: Can you automate substitution of dependant variable in the model statement?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Can-you-automate-substitution-of-dependant-variable-in-the-model/m-p/30487#M7251</link>
      <description>Hi:&lt;BR /&gt;
  Anytime you talk about "automating" SAS code, you get, eventually, to advice about using the SAS Macro Facility. For a good overview of the SAS macro facility, this is an excellent place to start:&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi28/056-28.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi28/056-28.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
  When you talk about generating a LIST of variable names, to be used in the automation process, you will get, eventually, to advice about using the SAS Dictionary Tables or the SASHELP.Vxxxxx tables.&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi26/p017-26.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi26/p017-26.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi31/259-31.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi31/259-31.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi29/237-29.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi29/237-29.pdf&lt;/A&gt; (specifically Example 5)&lt;BR /&gt;
 &lt;BR /&gt;
This reading should get you pointed in the right direction. There have also been a lot of previous forum postings on the use of the DICTIONARY tables and on macro processing like this.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Wed, 02 Jun 2010 15:41:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Can-you-automate-substitution-of-dependant-variable-in-the-model/m-p/30487#M7251</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-06-02T15:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: Can you automate substitution of dependant variable in the model statement?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Can-you-automate-substitution-of-dependant-variable-in-the-model/m-p/30488#M7252</link>
      <description>Great! Thanks for all your hard work!!</description>
      <pubDate>Wed, 02 Jun 2010 16:15:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Can-you-automate-substitution-of-dependant-variable-in-the-model/m-p/30488#M7252</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-06-02T16:15:32Z</dc:date>
    </item>
  </channel>
</rss>

