<?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: Finding the link between dependent and independent variables ? in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Finding-the-link-between-dependent-and-independent-variables/m-p/547969#M8462</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/269031"&gt;@KBou&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've been using SAS for about a month so far. It's a great tool for Financial analysis and I enjoy using it. My question is regarding if there's a function or a way to&amp;nbsp;output the&amp;nbsp;independents variables that define an dependent one ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let's say I have something like this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data Test;&lt;/P&gt;
&lt;P&gt;Set table_1 (keep=&amp;nbsp;x a b);&lt;/P&gt;
&lt;P&gt;y= 2x + ab;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any way SAS could compute from y and output x a b (not the value,&amp;nbsp;the variable name) &amp;nbsp;which are the variables that defines y ? So far I've been running the upper right search bar a lot, and was wondering if there's a more efficient way since our model must have at least 25 distinct programs running.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;It's really not clear what you are asking. It's not clear what you are running in the "upper right search bar". Please provide more details, show us exactly what your input is and exactly what output you want.&lt;/P&gt;</description>
    <pubDate>Tue, 02 Apr 2019 17:34:12 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2019-04-02T17:34:12Z</dc:date>
    <item>
      <title>Finding the link between dependent and independent variables ?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Finding-the-link-between-dependent-and-independent-variables/m-p/547963#M8461</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been using SAS for about a month so far. It's a great tool for Financial analysis and I enjoy using it. My question is regarding if there's a function or a way to&amp;nbsp;output the&amp;nbsp;independents variables that define an dependent one ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let's say I have something like this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data Test;&lt;/P&gt;&lt;P&gt;Set table_1 (keep=&amp;nbsp;x a b);&lt;/P&gt;&lt;P&gt;y= 2x + ab;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way SAS could compute from y and output x a b (not the value,&amp;nbsp;the variable name) &amp;nbsp;which are the variables that defines y ? So far I've been running the upper right search bar a lot, and was wondering if there's a more efficient way since our model must have at least 25 distinct programs running.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit 1: I'm using the search bar for tracking purposes. In that example, I'd search y, until i find the line where it is defined. But I Wonder if there's a way that SAS could output something similar to : x a b are the defining variables of y; instead of tracking them manually by the search bar.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 17:41:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Finding-the-link-between-dependent-and-independent-variables/m-p/547963#M8461</guid>
      <dc:creator>KBou</dc:creator>
      <dc:date>2019-04-02T17:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the link between dependent and independent variables ?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Finding-the-link-between-dependent-and-independent-variables/m-p/547969#M8462</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/269031"&gt;@KBou&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've been using SAS for about a month so far. It's a great tool for Financial analysis and I enjoy using it. My question is regarding if there's a function or a way to&amp;nbsp;output the&amp;nbsp;independents variables that define an dependent one ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let's say I have something like this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data Test;&lt;/P&gt;
&lt;P&gt;Set table_1 (keep=&amp;nbsp;x a b);&lt;/P&gt;
&lt;P&gt;y= 2x + ab;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any way SAS could compute from y and output x a b (not the value,&amp;nbsp;the variable name) &amp;nbsp;which are the variables that defines y ? So far I've been running the upper right search bar a lot, and was wondering if there's a more efficient way since our model must have at least 25 distinct programs running.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;It's really not clear what you are asking. It's not clear what you are running in the "upper right search bar". Please provide more details, show us exactly what your input is and exactly what output you want.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 17:34:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Finding-the-link-between-dependent-and-independent-variables/m-p/547969#M8462</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-04-02T17:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the link between dependent and independent variables ?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Finding-the-link-between-dependent-and-independent-variables/m-p/547973#M8463</link>
      <description>&lt;P&gt;I'm using the search bar for tracking purposes. In that example, I'd search y, until i find the line where it is defined. But I Wonder if there's a way that SAS could output something similar to : x a b are the defining variables of y; instead of tracking them manually by the search bar.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 17:40:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Finding-the-link-between-dependent-and-independent-variables/m-p/547973#M8463</guid>
      <dc:creator>KBou</dc:creator>
      <dc:date>2019-04-02T17:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the link between dependent and independent variables ?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Finding-the-link-between-dependent-and-independent-variables/m-p/547977#M8465</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/269031"&gt;@KBou&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;But I Wonder if there's a way that SAS could output something similar to : x a b are the defining variables of y&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Output to what?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 17:41:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Finding-the-link-between-dependent-and-independent-variables/m-p/547977#M8465</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-04-02T17:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the link between dependent and independent variables ?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Finding-the-link-between-dependent-and-independent-variables/m-p/547980#M8466</link>
      <description>&lt;P&gt;Thank you for your help sir, please be indulgent I'm pretty new to this !&amp;nbsp;I&amp;nbsp;have some issues expressing myself in English.&amp;nbsp;I don't really care about the output&amp;nbsp;type, as long as I have a message, a line, a report,... whatsoever that can trace which data is used for the calculations of this specific variable. This would save me so much time. When a variable appears in 13 programs, it's getting messy to trace back&amp;nbsp;its origins.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 17:52:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Finding-the-link-between-dependent-and-independent-variables/m-p/547980#M8466</guid>
      <dc:creator>KBou</dc:creator>
      <dc:date>2019-04-02T17:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the link between dependent and independent variables ?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Finding-the-link-between-dependent-and-independent-variables/m-p/547983#M8467</link>
      <description>&lt;P&gt;Well, you could name the variables differently, such as Y1 through Y13, and then your SAS code determines uniquely how it was created. That seems the simplest thing to me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suppose you could also create a record in a data set that says Y1 was created using the formula ... and Y2 was created using the formula etc. But you would have to program this, it's more work than the first suggestion above.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It all depends on exactly what you want and how much effort you want to put into it.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 17:53:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Finding-the-link-between-dependent-and-independent-variables/m-p/547983#M8467</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-04-02T17:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the link between dependent and independent variables ?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Finding-the-link-between-dependent-and-independent-variables/m-p/548101#M8478</link>
      <description>&lt;P&gt;A technique from the previous century: with a program editor that can search many files at once for regular expressions, such as &lt;STRONG&gt;Notepad++&lt;/STRONG&gt;, you could search all your SAS programs for the pattern&amp;nbsp; ^\s*\w+\s*=&amp;nbsp; and get a listing of all simple assignments such as:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Notepad++Capture.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/28412i5DE98DDDF8ACC034/image-size/large?v=v2&amp;amp;px=999" role="button" title="Notepad++Capture.PNG" alt="Notepad++Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2019 04:13:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Finding-the-link-between-dependent-and-independent-variables/m-p/548101#M8478</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2019-04-03T04:13:10Z</dc:date>
    </item>
  </channel>
</rss>

