<?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: Operations with symbols / variables in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Operations-with-symbols-variables/m-p/840687#M41577</link>
    <description>&lt;P&gt;You may need to clarify what you mean by your question.&lt;/P&gt;
&lt;P&gt;Do you mean if a SAS data set variable contains such calculations can it be used to perform the calculations?&lt;/P&gt;
&lt;P&gt;Or do you mean to manipulate the text of a value to a different equivalent form?&lt;/P&gt;
&lt;P&gt;Where are these operations stored?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Oct 2022 21:04:06 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2022-10-25T21:04:06Z</dc:date>
    <item>
      <title>Operations with symbols / variables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Operations-with-symbols-variables/m-p/840680#M41573</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to operate with symbols (variables x, y, etc) on SAS? Like 2x+3x=5x or exp(2*3+1-x/2)=exp(7-0.5*x) ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I searched for it online and couldnt find anything. And I think it's kind of a long shot, because SAS is more for data analysis, but since some mathematical softwares do it, I thought I'd ask.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 20:34:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Operations-with-symbols-variables/m-p/840680#M41573</guid>
      <dc:creator>Andre_AA1</dc:creator>
      <dc:date>2022-10-25T20:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: Operations with symbols / variables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Operations-with-symbols-variables/m-p/840681#M41574</link>
      <description>&lt;P&gt;Sure, I mean, symbols are implemented as variables in SAS, and the formulas you provide can be coded in the data step, SQL to name a few places.&lt;/P&gt;
&lt;P&gt;Can you give a bit more context how you wish to use this?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 20:46:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Operations-with-symbols-variables/m-p/840681#M41574</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2022-10-25T20:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Operations with symbols / variables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Operations-with-symbols-variables/m-p/840687#M41577</link>
      <description>&lt;P&gt;You may need to clarify what you mean by your question.&lt;/P&gt;
&lt;P&gt;Do you mean if a SAS data set variable contains such calculations can it be used to perform the calculations?&lt;/P&gt;
&lt;P&gt;Or do you mean to manipulate the text of a value to a different equivalent form?&lt;/P&gt;
&lt;P&gt;Where are these operations stored?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 21:04:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Operations-with-symbols-variables/m-p/840687#M41577</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-10-25T21:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: Operations with symbols / variables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Operations-with-symbols-variables/m-p/840688#M41578</link>
      <description>AFAIK SAS does not simplify mathematical equations, which is my interpretation of your question.&lt;BR /&gt;</description>
      <pubDate>Tue, 25 Oct 2022 21:04:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Operations-with-symbols-variables/m-p/840688#M41578</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-10-25T21:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: Operations with symbols / variables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Operations-with-symbols-variables/m-p/840690#M41580</link>
      <description>&lt;P&gt;I constructed a model (logistic regression) with 12 explanatory variables, so I have the model function y = f(x_1, x_2, ..., x_12). Besides, I have another function that depends on one of this variables, say z=g(x_1). Now, I need tho solve the equation for x_1:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;f(x_1,...,x_12)*g(x_1)=Lambda,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where Lambda is some constant.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As I was writing this reply, I realized it is more than I asked in the original question, but the operating with symbols seemed a good place to start and I didn't find anything online.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 21:07:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Operations-with-symbols-variables/m-p/840690#M41580</guid>
      <dc:creator>Andre_AA1</dc:creator>
      <dc:date>2022-10-25T21:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: Operations with symbols / variables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Operations-with-symbols-variables/m-p/840693#M41582</link>
      <description>Seems like you want to look into PROC NLIN?</description>
      <pubDate>Tue, 25 Oct 2022 21:15:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Operations-with-symbols-variables/m-p/840693#M41582</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-10-25T21:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: Operations with symbols / variables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Operations-with-symbols-variables/m-p/840696#M41584</link>
      <description>&lt;P&gt;Isn't this for modelling with nonlinear types of equation? I read some of the documentation and didn't find it related... I wanted the "pure" mathematical expression thats solves the equation.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 21:28:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Operations-with-symbols-variables/m-p/840696#M41584</guid>
      <dc:creator>Andre_AA1</dc:creator>
      <dc:date>2022-10-25T21:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: Operations with symbols / variables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Operations-with-symbols-variables/m-p/840700#M41586</link>
      <description>Then AFAIK, SAS does not do this.</description>
      <pubDate>Tue, 25 Oct 2022 21:52:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Operations-with-symbols-variables/m-p/840700#M41586</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-10-25T21:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: Operations with symbols / variables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Operations-with-symbols-variables/m-p/840850#M41592</link>
      <description>Maybe &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt; knows ?</description>
      <pubDate>Wed, 26 Oct 2022 12:36:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Operations-with-symbols-variables/m-p/840850#M41592</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-10-26T12:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: Operations with symbols / variables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Operations-with-symbols-variables/m-p/840873#M41593</link>
      <description>&lt;P&gt;In general, it is impossible to solve the equation&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;f(x_1,...,x_12)*g(x_1)=Lambda for x_1. Symbolic math software (such as Mathematica or the free version at&amp;nbsp;&lt;A href="https://www.wolframalpha.com/" target="_self"&gt; WolframAlpha.com&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;)&amp;nbsp; can invert simple equations such as low-order polynomials, and I think that is what you are asking about. No, SAS does not contain a symbolic algebra system.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;However, for any specified value of Lambda, you can NUMERICALLY solve for the value of x_1 that satisfies the equation by finding the root (zero) of the equation&amp;nbsp;&amp;nbsp;f(x_1,...,x_12)*g(x_1) - Lambda = 0. This is a one-dimensional root-finding problem, so can be solved in many ways. See&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;A href="https://blogs.sas.com/content/iml/2020/08/19/find-root-function-sas-data-step.html" target="_self"&gt;Find the root by using the DATA step&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://blogs.sas.com/content/iml/2014/02/05/find-the-root-of-a-function.html" target="_self"&gt;&lt;SPAN&gt;Find the root in SAS/IML by using the FROOT function&lt;/SPAN&gt;&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 26 Oct 2022 13:27:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Operations-with-symbols-variables/m-p/840873#M41593</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-10-26T13:27:43Z</dc:date>
    </item>
  </channel>
</rss>

