<?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: Back transformation for Proc reg when both variables transformed by natural log in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Back-transformation-for-Proc-reg-when-both-variables-transformed/m-p/896269#M354137</link>
    <description>&lt;P&gt;Let's try again. Which exact values do you expect to "back transform"? The slope parameter? The intercept? The predicted model results? The residuals (difference between predicted and measured dependent) The entire prediction curve equation (slope becomes an exponent)?&lt;/P&gt;</description>
    <pubDate>Thu, 28 Sep 2023 15:03:24 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2023-09-28T15:03:24Z</dc:date>
    <item>
      <title>Back transformation for Proc reg when both variables transformed by natural log</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Back-transformation-for-Proc-reg-when-both-variables-transformed/m-p/896179#M354089</link>
      <description>&lt;P&gt;&lt;STRONG&gt;data&lt;/STRONG&gt; box;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set box;&lt;/P&gt;&lt;P&gt;TRL_new = TRL;&lt;/P&gt;&lt;P&gt;TRL_log = log(TRL_new+1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PTRL_new = PTRL;&lt;/P&gt;&lt;P&gt;PTRL_log = log(PTRL_new+1);&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;sort&lt;/STRONG&gt; data=box;&lt;/P&gt;&lt;P&gt;&amp;nbsp; by TRL_log PTRL_log;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;reg&lt;/STRONG&gt;;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; model TRL_log = PTRL_log /p r cli clm;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2023 03:00:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Back-transformation-for-Proc-reg-when-both-variables-transformed/m-p/896179#M354089</guid>
      <dc:creator>ngui</dc:creator>
      <dc:date>2023-09-28T03:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Back transformation for Proc reg when both variables transformed by natural log</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Back-transformation-for-Proc-reg-when-both-variables-transformed/m-p/896204#M354104</link>
      <description>&lt;P&gt;Details. What exactly do you want "back transformed"?&lt;/P&gt;
&lt;P&gt;I suspect part of the answer is going to be to create an output data set with the OUTPUT statement to have the values and then in a data step exponentiate the values (and subtract 1 for some) to get back to the original units.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since you don't exactly use the variables TRL_new and PTRL_new in the model why bother to add them to the data?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would typically expect to see something more like:&lt;/P&gt;
&lt;PRE&gt;data box;
    set box;
   TRL_log = log(TRL+1);

   PTRL_log = log(PTRL+1);
run;&lt;/PRE&gt;</description>
      <pubDate>Thu, 28 Sep 2023 07:55:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Back-transformation-for-Proc-reg-when-both-variables-transformed/m-p/896204#M354104</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-09-28T07:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: Back transformation for Proc reg when both variables transformed by natural log</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Back-transformation-for-Proc-reg-when-both-variables-transformed/m-p/896248#M354127</link>
      <description>&lt;P&gt;Hi Bailardw,&lt;BR /&gt;&lt;BR /&gt;Thank you for your answer. I got two data outputs: one is variables did not transform and the other output did transform by log-log model (natural log). Based on the output from the log-log model, it does not make sense since, based on our expectation (Visualize our data set), TRL(y) must be higher than PTRL(x). I want to perform a log-log model since it fits the linear regression assumption.&lt;BR /&gt;&lt;BR /&gt;This means a one percent increase of the log-transformed TRL (y) was estimated to increase by 0.96% in PTRL(x). (So it means x is higher than y. This conclusion doesn't make sense, but the data fits the linear regression assumption.)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;This means 1 cm TRL (y) was estimated to increase by 2.1 cm in PTRL (x). (So it means y is higher than x.) (So it means y is higher than x. This conclusion makes sense, but the data does not fit the linear regression assumption.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to back-transform the log-log model because I want to see the real number to decide whether the output result makes any sense.&amp;nbsp;&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="ngui_0-1695906486994.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/88399i895E9E36C0E3C043/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ngui_0-1695906486994.png" alt="ngui_0-1695906486994.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Both variables did not transform&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="ngui_1-1695906553626.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/88400iD73E7727B3D5FB7D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ngui_1-1695906553626.png" alt="ngui_1-1695906553626.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Both variables did transform by natural log&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2023 13:39:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Back-transformation-for-Proc-reg-when-both-variables-transformed/m-p/896248#M354127</guid>
      <dc:creator>ngui</dc:creator>
      <dc:date>2023-09-28T13:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Back transformation for Proc reg when both variables transformed by natural log</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Back-transformation-for-Proc-reg-when-both-variables-transformed/m-p/896269#M354137</link>
      <description>&lt;P&gt;Let's try again. Which exact values do you expect to "back transform"? The slope parameter? The intercept? The predicted model results? The residuals (difference between predicted and measured dependent) The entire prediction curve equation (slope becomes an exponent)?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2023 15:03:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Back-transformation-for-Proc-reg-when-both-variables-transformed/m-p/896269#M354137</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-09-28T15:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: Back transformation for Proc reg when both variables transformed by natural log</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Back-transformation-for-Proc-reg-when-both-variables-transformed/m-p/896271#M354139</link>
      <description>Everything if possible. But, the most important values that I want to back transform are slope, intercept and standard error.</description>
      <pubDate>Thu, 28 Sep 2023 15:15:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Back-transformation-for-Proc-reg-when-both-variables-transformed/m-p/896271#M354139</guid>
      <dc:creator>ngui</dc:creator>
      <dc:date>2023-09-28T15:15:34Z</dc:date>
    </item>
  </channel>
</rss>

